From d45e20e55d99d6d21e10362f08798a357116be94 Mon Sep 17 00:00:00 2001 From: Mehdi Maaref Date: Mon, 8 Aug 2022 18:09:00 +0200 Subject: [PATCH 1/2] [ENH] :sparkles: LIST_GROUP of GenericLdapMapper should take ASI_GROUPS Signed-off-by: Mehdi Maaref --- docs/configuration.md | 44 +- docs/realm-configuration.md | 22 +- .../insee/sugoi/ldap/LdapWriterStoreTest.java | 9 +- sugoi-api-ldap-utils/hs_err_pid15472.log | 534 ++++++++++++++++++ .../ldap/utils/mapper/GenericLdapMapper.java | 41 +- .../UserLdapMapperFromAttributesTest.java | 47 +- 6 files changed, 626 insertions(+), 71 deletions(-) create mode 100644 sugoi-api-ldap-utils/hs_err_pid15472.log diff --git a/docs/configuration.md b/docs/configuration.md index c90dc397..029cd033 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -92,28 +92,28 @@ Sugoi-api implements springdoc with full customization allowed Sugoi-api implements spring security with full customization allowed -| Properties | Description | Default value | example | -| ---------------------------------------------------------- | :---------: | ------------: | ------: | -| fr.insee.sugoi.cors.allowed-origins | | | | -| fr.insee.sugoi.cors.allowed-methods | | | | -| fr.insee.sugoi.security.basic-authentication-enabled | | | | -| fr.insee.sugoi.security.ldap-account-managment-enabled | | | | -| fr.insee.sugoi.security.ldap-account-managment-url | | | | -| fr.insee.sugoi.security.ldap-account-managment-user-base | | | | -| fr.insee.sugoi.security.ldap-account-managment-groupe-base | | | | -| fr.insee.sugoi.security.bearer-authentication-enabled | | | | -| spring.security.oauth2.resourceserver.jwt.jwk-set-uri | | | | -| fr.insee.sugoi.api.old.regexp.role.consultant | | | | -| fr.insee.sugoi.api.old.regexp.role.gestionnaire | | | | -| fr.insee.sugoi.api.old.regexp.role.admin | | | | -| fr.insee.sugoi.api.old.enable.preauthorize | | | | -| fr.insee.sugoi.api.regexp.role.reader | | | | -| fr.insee.sugoi.api.regexp.role.writer | | | | -| fr.insee.sugoi.api.regexp.role.admin | | | | -| fr.insee.sugoi.api.regexp.role.app.manager | | | | -| fr.insee.sugoi.api.regexp.role.password.manager | | | | -| fr.insee.sugoi.api.enable.preauthorize | | | | -| fr.insee.sugoi.security.default-roles-for-users | default role to add to each connected user | | | +| Properties | Description | Default value | example | +| ---------------------------------------------------------- |:----------------------------------------------------------------------------------------------------------------------:| ------------: | ------: | +| fr.insee.sugoi.cors.allowed-origins | | | | +| fr.insee.sugoi.cors.allowed-methods | | | | +| fr.insee.sugoi.security.basic-authentication-enabled | | | | +| fr.insee.sugoi.security.ldap-account-managment-enabled | | | | +| fr.insee.sugoi.security.ldap-account-managment-url | | | | +| fr.insee.sugoi.security.ldap-account-managment-user-base | | | | +| fr.insee.sugoi.security.ldap-account-managment-groupe-base | | | | +| fr.insee.sugoi.security.bearer-authentication-enabled | | | | +| spring.security.oauth2.resourceserver.jwt.jwk-set-uri | | | | +| fr.insee.sugoi.api.old.regexp.role.consultant | | | | +| fr.insee.sugoi.api.old.regexp.role.gestionnaire | | | | +| fr.insee.sugoi.api.old.regexp.role.admin | | | | +| fr.insee.sugoi.api.old.enable.preauthorize | | | | +| fr.insee.sugoi.api.regexp.role.reader | | | | +| fr.insee.sugoi.api.regexp.role.writer | | | | +| fr.insee.sugoi.api.regexp.role.admin | | | | +| fr.insee.sugoi.ldap.default.group_manager_source_pattern | Default pattern to use when searching manager group for application. Application name should be passed via {appliname} | | | +| fr.insee.sugoi.api.regexp.role.password.manager | | | | +| fr.insee.sugoi.api.enable.preauthorize | | | | +| fr.insee.sugoi.security.default-roles-for-users | default role to add to each connected user | | | #### Password configuration Passwords follows rules when there are passed by a user or randomly generated by Sugoi. A default for these rules which will apply to all realm that do not have its own configuration can be set by properties. For configuration at the realm level see [Realm configuration properties on password](realm-configuration.md#realm-configuration-properties-on-password). diff --git a/docs/realm-configuration.md b/docs/realm-configuration.md index 3b2b1ab8..73440450 100644 --- a/docs/realm-configuration.md +++ b/docs/realm-configuration.md @@ -91,6 +91,7 @@ A list of custom key/values can be added at the end. | groupsMaxOutputSize | 100 | yes | fr.insee.sugoi.groups.maxoutputsize | The maximum number of grouos outputs allowed | | applicationsMaxOutputSize | 100 | yes | fr.insee.sugoi.applications.maxoutputsize | The maximum number of applications outputs allowed | | organizationsMaxOutputSize | 100 | yes | fr.insee.sugoi.organizations.maxoutputsize | The maximum number of organizations outputs allowed | +| group_manager_source_pattern | "uid=ASI\_$(appliname),ou=Applications,o=insee,c=fr" | | the default can be set via the instance property : fr.insee.sugoi.ldap.default.group_manager_source_pattern | Describe where the group manager of the application {appliname} should be fetch. Users belonging to this group can create, delete, add or remove users from ${appliname}'s groups. | Realm configuration properties can be set as: @@ -104,17 +105,16 @@ A list of custom key/values can be added at the end. A UserStorage is a logical division of a Realm. These configuration should be set for each UserStorage contained in a Realm : -| Field name | Example | Optional | Default | Description | -| ---------------------------- | :--------------------------------------------------------------------------------: | -----------------------------------------------------------------------------------------: | -----------------------------------------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| name | "myUserStorage" | no | | Name which identifies the userstorage in the realm | -| userSource | "ou=contacts,ou=clients_domaine1,o=insee,c=fr", "/realm1/users" | no | | The location of the users to read on the server. | -| organizationSource |  "ou=organisations,ou=clients_domaine1,o=insee,c=fr", "/realm1/organizations" | yes | | The location of the organization to read on the server. If organizationSource is not set, then organizations cannot be managed. | -| addressSource | "ou=adresses,ou=clients_domaine1,o=insee,c=fr" | Only used for ldap storage. Is needed with ldap storage for now but should become optional | | Addresses are stored as an independant resource in ldap storage. addressSource indicates the location of users and organizations address on the server. | -| properties | | might be needed depending on the type of store (see next sections) | | A list of other options which can be specific to the type of Store Provider. | -| readerType | "LdapReaderStore", "FileReaderStore" |  no | the default can be set via the instance property : fr.insee.sugoi.store.readerType  | Indicates wich type of store is used for reading. This attribute is read-only for now and should be set via default. | -| writeType | "JMSWriterStore", "LdapWriterStore", "FileWriterStore" |  no |  the default can be set via the instance property : fr.insee.sugoi.store.writerType  | Indicates wich type of store is used for writing. This attribute is read-only for now and should be set via default. | -| mappings | see [mappings section](#realm-and-userstorage-mappings-with-a-ldap-store-provider) | should be set when using a ldap store provider | see [mappings section](#realm-and-userstorage-mappings-with-a-ldap-store-provider) | Description of how to map Sugoi user and organization attributes with ldap attributes when using a ldap store provider | -| group_manager_source_pattern | "uid=ASI\_$(app),ou=Applications,o=insee,c=fr" | should be set when wanted to have a kind of group of group manager for app | | Description of where to put user who can manage apps groups | +| Field name | Example | Optional | Default | Description | +| ---------------------------- |:----------------------------------------------------------------------------------:|---------------------------------------------------------------------------------------------------------:|-----------------------------------------------------------------------------------------------:| ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| name | "myUserStorage" | no | | Name which identifies the userstorage in the realm | +| userSource | "ou=contacts,ou=clients_domaine1,o=insee,c=fr", "/realm1/users" | no | | The location of the users to read on the server. | +| organizationSource |  "ou=organisations,ou=clients_domaine1,o=insee,c=fr", "/realm1/organizations" | yes | | The location of the organization to read on the server. If organizationSource is not set, then organizations cannot be managed. | +| addressSource | "ou=adresses,ou=clients_domaine1,o=insee,c=fr" | Only used for ldap storage. Is needed with ldap storage for now but should become optional | | Addresses are stored as an independant resource in ldap storage. addressSource indicates the location of users and organizations address on the server. | +| properties | | might be needed depending on the type of store (see next sections) | | A list of other options which can be specific to the type of Store Provider. | +| readerType | "LdapReaderStore", "FileReaderStore" |  no | the default can be set via the instance property : fr.insee.sugoi.store.readerType  | Indicates wich type of store is used for reading. This attribute is read-only for now and should be set via default. | +| writeType | "JMSWriterStore", "LdapWriterStore", "FileWriterStore" |  no |  the default can be set via the instance property : fr.insee.sugoi.store.writerType  | Indicates wich type of store is used for writing. This attribute is read-only for now and should be set via default. | +| mappings | see [mappings section](#realm-and-userstorage-mappings-with-a-ldap-store-provider) | should be set when using a ldap store provider | see [mappings section](#realm-and-userstorage-mappings-with-a-ldap-store-provider) | Description of how to map Sugoi user and organization attributes with ldap attributes when using a ldap store provider | ### Generic UserStorage properties diff --git a/sugoi-api-ldap-store-provider/src/test/java/fr/insee/sugoi/ldap/LdapWriterStoreTest.java b/sugoi-api-ldap-store-provider/src/test/java/fr/insee/sugoi/ldap/LdapWriterStoreTest.java index 1d6c5a79..0f0bf536 100644 --- a/sugoi-api-ldap-store-provider/src/test/java/fr/insee/sugoi/ldap/LdapWriterStoreTest.java +++ b/sugoi-api-ldap-store-provider/src/test/java/fr/insee/sugoi/ldap/LdapWriterStoreTest.java @@ -114,8 +114,10 @@ public Realm realm() { PostalAddress addressOrga; PostalAddress addressToto; + @Bean(name = "Realm") @BeforeEach public void setup() { + ldapWriterStore = (LdapWriterStore) context.getBean("LdapWriterStore", realm(), userStorage()); ldapReaderStore = (LdapReaderStore) context.getBean("LdapReaderStore", realm(), userStorage()); addressOrga = new PostalAddress(); @@ -255,11 +257,8 @@ public void testDeleteUser() { .anyMatch(user -> user.getUsername().equalsIgnoreCase("byebye"))); assertThat( "byebye is in Utilisateurs_Applitest", - !ldapReaderStore - .getUsersInGroup("Applitest", "Utilisateurs_Applitest") - .getResults() - .stream() - .anyMatch(user -> user.getUsername().equalsIgnoreCase("byebye"))); + ldapReaderStore.getUsersInGroup("Applitest", "Utilisateurs_Applitest").getResults().stream() + .noneMatch(user -> user.getUsername().equalsIgnoreCase("byebye"))); } @Test diff --git a/sugoi-api-ldap-utils/hs_err_pid15472.log b/sugoi-api-ldap-utils/hs_err_pid15472.log new file mode 100644 index 00000000..f838767f --- /dev/null +++ b/sugoi-api-ldap-utils/hs_err_pid15472.log @@ -0,0 +1,534 @@ +# +# A fatal error has been detected by the Java Runtime Environment: +# +# Internal Error (generateOopMap.cpp:2164), pid=15472, tid=22072 +# fatal error: Illegal class file encountered. Try running with -Xverify:all in method setup +# +# JRE version: OpenJDK Runtime Environment Temurin-16.0.2+7 (16.0.2+7) (build 16.0.2+7) +# Java VM: OpenJDK 64-Bit Server VM Temurin-16.0.2+7 (16.0.2+7, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64) +# No core dump will be written. Minidumps are not enabled by default on client versions of Windows +# +# If you would like to submit a bug report, please visit: +# https://github.com/adoptium/adoptium-support/issues +# + +--------------- S U M M A R Y ------------ + +Command Line: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:56005,suspend=y,server=n -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:C:\Users\RMBH0V\AppData\Local\JetBrains\IntelliJIdea2022.1\captureAgent\debugger-agent.jar=file:/C:/Users/RMBH0V/AppData/Local/Temp/capture.props -Dfile.encoding=UTF-8 com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit5 @w@C:\Users\RMBH0V\AppData\Local\Temp\idea_working_dirs_junit.tmp @C:\Users\RMBH0V\AppData\Local\Temp\idea_junit.tmp + +Host: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz, 8 cores, 15G, Windows 10 , 64 bit Build 19041 (10.0.19041.1806) +Time: Mon Aug 22 18:31:11 2022 Paris, Madrid (heure duild 19041 (10.0.19041.1806) elapsed time: 231.987057 seconds (0d 0h 3m 51s) + +--------------- T H R E A D --------------- + +Current thread (0x000002882a2c5a10): VMThread "VM Thread" [stack: 0x000000aca8600000,0x000000aca8700000] [id=22072] + +Stack: [0x000000aca8600000,0x000000aca8700000] +Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) +V [jvm.dll+0x67918a] +V [jvm.dll+0x82b819] +V [jvm.dll+0x82cfce] +V [jvm.dll+0x82d5d7] +V [jvm.dll+0x24e993] +V [jvm.dll+0x33df99] +V [jvm.dll+0x33a444] +V [jvm.dll+0x33c37b] +V [jvm.dll+0x33c9ce] +V [jvm.dll+0x33a04f] +V [jvm.dll+0x3392d7] +V [jvm.dll+0x667bfe] +V [jvm.dll+0x667903] +V [jvm.dll+0x62b9f8] +V [jvm.dll+0x8232a5] +V [jvm.dll+0x52f3d6] +V [jvm.dll+0x831a5b] +V [jvm.dll+0x8326a4] +V [jvm.dll+0x832ba9] +V [jvm.dll+0x832e64] +V [jvm.dll+0x832f30] +V [jvm.dll+0x7da77a] +V [jvm.dll+0x677fb6] +C [ucrtbase.dll+0x21bb2] +C [KERNEL32.DLL+0x17034] +C [ntdll.dll+0x52651] + +VM_Operation (0x000000aca91ff560): get/set locals, mode: safepoint, requested by thread 0x000002882adac310 + + +--------------- P R O C E S S --------------- + +Threads class SMR info: +_java_thread_list=0x000002882e61fbe0, length=15, elements={ +0x00000288059c5080, 0x000002882a2ca570, 0x000002882a2cb340, 0x000002882ac08310, +0x000002882ac0cc40, 0x000002882ac0d550, 0x000002882ac0de60, 0x000002882ac13fb0, +0x000002882ac21930, 0x000002882ac24290, 0x000002882a2aa250, 0x000002882adac310, +0x000002882adc7c70, 0x000002882adc81b0, 0x000002882add9470 +} + +Java Threads: ( => current thread ) + 0x00000288059c5080 JavaThread "main" [_thread_blocked, id=7964, stack(0x000000aca8000000,0x000000aca8100000)] + 0x000002882a2ca570 JavaThread "Reference Handler" daemon [_thread_blocked, id=11824, stack(0x000000aca8700000,0x000000aca8800000)] + 0x000002882a2cb340 JavaThread "Finalizer" daemon [_thread_blocked, id=27148, stack(0x000000aca8800000,0x000000aca8900000)] + 0x000002882ac08310 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=14272, stack(0x000000aca8900000,0x000000aca8a00000)] + 0x000002882ac0cc40 JavaThread "Attach Listener" daemon [_thread_blocked, id=10572, stack(0x000000aca8a00000,0x000000aca8b00000)] + 0x000002882ac0d550 JavaThread "Service Thread" daemon [_thread_blocked, id=8564, stack(0x000000aca8b00000,0x000000aca8c00000)] + 0x000002882ac0de60 JavaThread "Monitor Deflation Thread" daemon [_thread_blocked, id=4216, stack(0x000000aca8c00000,0x000000aca8d00000)] + 0x000002882ac13fb0 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=9320, stack(0x000000aca8d00000,0x000000aca8e00000)] + 0x000002882ac21930 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=14864, stack(0x000000aca8e00000,0x000000aca8f00000)] + 0x000002882ac24290 JavaThread "Sweeper thread" daemon [_thread_blocked, id=29304, stack(0x000000aca8f00000,0x000000aca9000000)] + 0x000002882a2aa250 JavaThread "Common-Cleaner" daemon [_thread_blocked, id=10416, stack(0x000000aca9000000,0x000000aca9100000)] + 0x000002882adac310 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=21304, stack(0x000000aca9100000,0x000000aca9200000)] + 0x000002882adc7c70 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=9344, stack(0x000000aca9200000,0x000000aca9300000)] + 0x000002882adc81b0 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=29164, stack(0x000000aca9300000,0x000000aca9400000)] + 0x000002882add9470 JavaThread "Notification Thread" daemon [_thread_blocked, id=14256, stack(0x000000aca9400000,0x000000aca9500000)] + +Other Threads: +=>0x000002882a2c5a10 VMThread "VM Thread" [stack: 0x000000aca8600000,0x000000aca8700000] [id=22072] + 0x000002882adccf40 WatcherThread [stack: 0x000000aca9500000,0x000000aca9600000] [id=8656] + 0x0000028805a15580 GCTaskThread "GC Thread#0" [stack: 0x000000aca8100000,0x000000aca8200000] [id=11992] + 0x000002882b8eb980 GCTaskThread "GC Thread#1" [stack: 0x000000aca9700000,0x000000aca9800000] [id=20364] + 0x000002882babd7a0 GCTaskThread "GC Thread#2" [stack: 0x000000aca9800000,0x000000aca9900000] [id=25572] + 0x000002882babdab0 GCTaskThread "GC Thread#3" [stack: 0x000000aca9900000,0x000000aca9a00000] [id=13768] + 0x000002882babddc0 GCTaskThread "GC Thread#4" [stack: 0x000000aca9a00000,0x000000aca9b00000] [id=2272] + 0x000002882b52d9e0 GCTaskThread "GC Thread#5" [stack: 0x000000aca9b00000,0x000000aca9c00000] [id=8784] + 0x000002882b58e930 GCTaskThread "GC Thread#6" [stack: 0x000000aca9c00000,0x000000aca9d00000] [id=14964] + 0x000002882b58ec40 GCTaskThread "GC Thread#7" [stack: 0x000000aca9d00000,0x000000aca9e00000] [id=27492] + 0x0000028805a26310 ConcurrentGCThread "G1 Main Marker" [stack: 0x000000aca8200000,0x000000aca8300000] [id=10108] + 0x0000028805a27920 ConcurrentGCThread "G1 Conc#0" [stack: 0x000000aca8300000,0x000000aca8400000] [id=12320] + 0x000002882e625950 ConcurrentGCThread "G1 Conc#1" [stack: 0x000000acaa000000,0x000000acaa100000] [id=14836] + 0x0000028805a5dc40 ConcurrentGCThread "G1 Refine#0" [stack: 0x000000aca8400000,0x000000aca8500000] [id=17228] + 0x0000028805a5e5d0 ConcurrentGCThread "G1 Service" [stack: 0x000000aca8500000,0x000000aca8600000] [id=28268] + +Threads with active compile tasks: + +VM state: at safepoint (normal execution) + +VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event]) +[0x00000288059c27c0] Threads_lock - owner thread: 0x000002882a2c5a10 + +Heap address: 0x0000000702c00000, size: 4052 MB, Compressed Oops mode: Zero based, Oop shift amount: 3 + +CDS archive(s) mapped at: [0x0000000800000000-0x0000000800bf0000-0x0000000800bf0000), size 12517376, SharedBaseAddress: 0x0000000800000000, ArchiveRelocationMode: 0. +Compressed class space mapped at: 0x0000000800c00000-0x0000000840c00000, reserved size: 1073741824 +Narrow klass base: 0x0000000800000000, Narrow klass shift: 3, Narrow klass range: 0x100000000 + +GC Precious Log: + CPUs: 8 total, 8 available + Memory: 16204M + Large Page Support: Disabled + NUMA Support: Disabled + Compressed Oops: Enabled (Zero based) + Heap Region Size: 2M + Heap Min Capacity: 8M + Heap Initial Capacity: 254M + Heap Max Capacity: 4052M + Pre-touch: Disabled + Parallel Workers: 8 + Concurrent Workers: 2 + Concurrent Refinement Workers: 8 + Periodic GC: Disabled + +Heap: + garbage-first heap total 55296K, used 21483K [0x0000000702c00000, 0x0000000800000000) + region size 2048K, 6 young (12288K), 1 survivors (2048K) + Metaspace used 26612K, committed 26880K, reserved 1073152K + class space used 3630K, committed 3776K, reserved 1048576K + +Heap Regions: E=young(eden), S=young(survivor), O=old, HS=humongous(starts), HC=humongous(continues), CS=collection set, F=free, OA=open archive, CA=closed archive, TAMS=top-at-mark-start (previous, next) +| 0|0x0000000702c00000, 0x0000000702e00000, 0x0000000702e00000|100%|HS| |TAMS 0x0000000702e00000, 0x0000000702c00000| Complete +| 1|0x0000000702e00000, 0x0000000703000000, 0x0000000703000000|100%| O| |TAMS 0x0000000703000000, 0x0000000702e00000| Untracked +| 2|0x0000000703000000, 0x0000000703200000, 0x0000000703200000|100%| O| |TAMS 0x0000000703200000, 0x0000000703000000| Untracked +| 3|0x0000000703200000, 0x0000000703396000, 0x0000000703400000| 79%| O| |TAMS 0x0000000703396000, 0x0000000703200000| Untracked +| 4|0x0000000703400000, 0x0000000703600000, 0x0000000703600000|100%| O| |TAMS 0x0000000703400000, 0x0000000703400000| Untracked +| 5|0x0000000703600000, 0x0000000703800000, 0x0000000703800000|100%| O| |TAMS 0x0000000703600000, 0x0000000703600000| Untracked +| 6|0x0000000703800000, 0x0000000703822200, 0x0000000703a00000| 6%| O| |TAMS 0x0000000703800000, 0x0000000703800000| Untracked +| 7|0x0000000703a00000, 0x0000000703a00000, 0x0000000703c00000| 0%| F| |TAMS 0x0000000703a00000, 0x0000000703a00000| Untracked +| 8|0x0000000703c00000, 0x0000000703c00000, 0x0000000703e00000| 0%| F| |TAMS 0x0000000703c00000, 0x0000000703c00000| Untracked +| 9|0x0000000703e00000, 0x0000000703e00000, 0x0000000704000000| 0%| F| |TAMS 0x0000000703e00000, 0x0000000703e00000| Untracked +| 10|0x0000000704000000, 0x0000000704142a80, 0x0000000704200000| 63%| S|CS|TAMS 0x0000000704000000, 0x0000000704000000| Complete +| 11|0x0000000704200000, 0x0000000704200000, 0x0000000704400000| 0%| F| |TAMS 0x0000000704200000, 0x0000000704200000| Untracked +| 12|0x0000000704400000, 0x0000000704400000, 0x0000000704600000| 0%| F| |TAMS 0x0000000704400000, 0x0000000704400000| Untracked +| 13|0x0000000704600000, 0x0000000704600000, 0x0000000704800000| 0%| F| |TAMS 0x0000000704600000, 0x0000000704600000| Untracked +| 14|0x0000000704800000, 0x0000000704800000, 0x0000000704a00000| 0%| F| |TAMS 0x0000000704800000, 0x0000000704800000| Untracked +| 15|0x0000000704a00000, 0x0000000704a00000, 0x0000000704c00000| 0%| F| |TAMS 0x0000000704a00000, 0x0000000704a00000| Untracked +| 16|0x0000000704c00000, 0x0000000704c00000, 0x0000000704e00000| 0%| F| |TAMS 0x0000000704c00000, 0x0000000704c00000| Untracked +| 17|0x0000000704e00000, 0x0000000704e00000, 0x0000000705000000| 0%| F| |TAMS 0x0000000704e00000, 0x0000000704e00000| Untracked +| 18|0x0000000705000000, 0x0000000705000000, 0x0000000705200000| 0%| F| |TAMS 0x0000000705000000, 0x0000000705000000| Untracked +| 19|0x0000000705200000, 0x0000000705200000, 0x0000000705400000| 0%| F| |TAMS 0x0000000705200000, 0x0000000705200000| Untracked +| 20|0x0000000705400000, 0x0000000705400000, 0x0000000705600000| 0%| F| |TAMS 0x0000000705400000, 0x0000000705400000| Untracked +| 21|0x0000000705600000, 0x0000000705600000, 0x0000000705800000| 0%| F| |TAMS 0x0000000705600000, 0x0000000705600000| Untracked +| 22|0x0000000705800000, 0x000000070583c558, 0x0000000705a00000| 11%| E| |TAMS 0x0000000705800000, 0x0000000705800000| Complete +| 88|0x000000070dc00000, 0x000000070de00000, 0x000000070de00000|100%| E|CS|TAMS 0x000000070dc00000, 0x000000070dc00000| Complete +| 89|0x000000070de00000, 0x000000070e000000, 0x000000070e000000|100%| E|CS|TAMS 0x000000070de00000, 0x000000070de00000| Complete +| 90|0x000000070e000000, 0x000000070e200000, 0x000000070e200000|100%| E|CS|TAMS 0x000000070e000000, 0x000000070e000000| Complete +| 126|0x0000000712800000, 0x0000000712a00000, 0x0000000712a00000|100%| E|CS|TAMS 0x0000000712800000, 0x0000000712800000| Complete + +Card table byte_map: [0x000002881e940000,0x000002881f130000] _byte_map_base: 0x000002881b12a000 + +Marking Bits (Prev, Next): (CMBitMap*) 0x0000028805a15bc0, (CMBitMap*) 0x0000028805a15b80 + Prev Bits: [0x0000028823870000, 0x00000288277c0000) + Next Bits: [0x000002881f920000, 0x0000028823870000) + +Polling page: 0x0000028804130000 + +Metaspace: + +Usage: + Non-class: 22.44 MB used. + Class: 3.55 MB used. + Both: 25.99 MB used. + +Virtual space: + Non-class space: 24.00 MB reserved, 22.56 MB ( 94%) committed, 3 nodes. + Class space: 1.00 GB reserved, 3.69 MB ( <1%) committed, 1 nodes. + Both: 1.02 GB reserved, 26.25 MB ( 3%) committed. + +Chunk freelists: + Non-Class: 640.00 KB + Class: 272.00 KB + Both: 912.00 KB + +MaxMetaspaceSize: 17179869184.00 GB +CompressedClassSpaceSize: 1.00 GB + - commit_granule_bytes: 65536. + - commit_granule_words: 8192. + - virtual_space_node_default_size: 1048576. + - enlarge_chunks_in_place: 1. + - new_chunks_are_fully_committed: 0. + - uncommit_free_chunks: 1. + - use_allocation_guard: 0. + - handle_deallocations: 1. + + +Internal statistics: + +num_allocs_failed_limit: 3. +num_arena_births: 280. +num_arena_deaths: 0. +num_vsnodes_births: 4. +num_vsnodes_deaths: 0. +num_space_committed: 420. +num_space_uncommitted: 0. +num_chunks_returned_to_freelist: 3. +num_chunks_taken_from_freelist: 1197. +num_chunk_merges: 3. +num_chunk_splits: 841. +num_chunks_enlarged: 674. +num_purges: 0. + +CodeHeap 'non-profiled nmethods': size=120000Kb used=1619Kb max_used=1619Kb free=118380Kb + bounds [0x00000288161c0000, 0x0000028816430000, 0x000002881d6f0000] +CodeHeap 'profiled nmethods': size=120000Kb used=5544Kb max_used=5544Kb free=114456Kb + bounds [0x000002880ec90000, 0x000002880f200000, 0x00000288161c0000] +CodeHeap 'non-nmethods': size=5760Kb used=1300Kb max_used=1381Kb free=4460Kb + bounds [0x000002880e6f0000, 0x000002880e960000, 0x000002880ec90000] + total_blobs=3184 nmethods=2655 adapters=439 + compilation: enabled + stopped_count=0, restarted_count=0 + full_count=0 + +Compilation events (20 events): +Event: 4.429 Thread 0x000002882ac21930 2647 3 java.nio.CharBuffer::arrayOffset (35 bytes) +Event: 4.429 Thread 0x000002882ac21930 nmethod 2647 0x000002880f1f3310 code [0x000002880f1f34e0, 0x000002880f1f37d8] +Event: 4.431 Thread 0x000002882ac13fb0 nmethod 2644 0x0000028816352510 code [0x00000288163526a0, 0x0000028816352b98] +Event: 4.431 Thread 0x000002882ac13fb0 2648 4 java.nio.ByteBuffer:: (14 bytes) +Event: 4.434 Thread 0x000002882ae8f5c0 nmethod 2645 0x0000028816352f10 code [0x00000288163530a0, 0x00000288163537f8] +Event: 4.436 Thread 0x000002882ac13fb0 nmethod 2648 0x0000028816353d10 code [0x0000028816353ea0, 0x00000288163544f8] +Event: 4.447 Thread 0x000002882ac21930 2649 3 java.lang.invoke.BoundMethodHandle::editor (8 bytes) +Event: 4.448 Thread 0x000002882ac21930 nmethod 2649 0x000002880f1f3910 code [0x000002880f1f3ae0, 0x000002880f1f3ea8] +Event: 4.451 Thread 0x000002882ac21930 2650 3 jdk.internal.misc.VM::isSupportedClassFileVersion (39 bytes) +Event: 4.451 Thread 0x000002882ac21930 nmethod 2650 0x000002880f1f4090 code [0x000002880f1f4240, 0x000002880f1f44d8] +Event: 4.451 Thread 0x000002882ac21930 2651 3 jdk.internal.org.objectweb.asm.ClassReader::readConst (276 bytes) +Event: 4.452 Thread 0x000002882ac21930 nmethod 2651 0x000002880f1f4590 code [0x000002880f1f4a20, 0x000002880f1f6858] +Event: 4.452 Thread 0x000002882ac21930 2653 3 java.util.regex.Pattern::next (33 bytes) +Event: 4.453 Thread 0x000002882ac21930 nmethod 2653 0x000002880f1f7410 code [0x000002880f1f75c0, 0x000002880f1f7848] +Event: 4.453 Thread 0x000002882ac21930 2652 3 jdk.internal.org.objectweb.asm.Type::getClassName (172 bytes) +Event: 4.454 Thread 0x000002882ac21930 nmethod 2652 0x000002880f1f7990 code [0x000002880f1f7d40, 0x000002880f1f9228] +Event: 4.454 Thread 0x000002882ac21930 2654 1 java.lang.invoke.DirectMethodHandle$Special::isInvokeSpecial (2 bytes) +Event: 4.454 Thread 0x000002882ac21930 nmethod 2654 0x0000028816354a10 code [0x0000028816354ba0, 0x0000028816354c78] +Event: 227.470 Thread 0x000002882ac21930 2655 3 java.lang.String::hashCode (60 bytes) +Event: 227.471 Thread 0x000002882ac21930 nmethod 2655 0x000002880f1f9990 code [0x000002880f1f9b60, 0x000002880f1f9ed8] + +GC Heap History (8 events): +Event: 1.111 GC heap before +{Heap before GC invocations=0 (full 0): + garbage-first heap total 260096K, used 22528K [0x0000000702c00000, 0x0000000800000000) + region size 2048K, 11 young (22528K), 0 survivors (0K) + Metaspace used 3625K, committed 3776K, reserved 1056768K + class space used 387K, committed 448K, reserved 1048576K +} +Event: 1.115 GC heap after +{Heap after GC invocations=1 (full 0): + garbage-first heap total 260096K, used 7815K [0x0000000702c00000, 0x0000000800000000) + region size 2048K, 2 young (4096K), 2 survivors (4096K) + Metaspace used 3625K, committed 3776K, reserved 1056768K + class space used 387K, committed 448K, reserved 1048576K +} +Event: 2.037 GC heap before +{Heap before GC invocations=1 (full 0): + garbage-first heap total 260096K, used 34439K [0x0000000702c00000, 0x0000000800000000) + region size 2048K, 15 young (30720K), 2 survivors (4096K) + Metaspace used 8709K, committed 8960K, reserved 1064960K + class space used 1039K, committed 1152K, reserved 1048576K +} +Event: 2.041 GC heap after +{Heap after GC invocations=2 (full 0): + garbage-first heap total 260096K, used 9706K [0x0000000702c00000, 0x0000000800000000) + region size 2048K, 1 young (2048K), 1 survivors (2048K) + Metaspace used 8709K, committed 8960K, reserved 1064960K + class space used 1039K, committed 1152K, reserved 1048576K +} +Event: 3.581 GC heap before +{Heap before GC invocations=2 (full 0): + garbage-first heap total 260096K, used 79338K [0x0000000702c00000, 0x0000000800000000) + region size 2048K, 36 young (73728K), 1 survivors (2048K) + Metaspace used 21017K, committed 21248K, reserved 1073152K + class space used 2668K, committed 2752K, reserved 1048576K +} +Event: 3.586 GC heap after +{Heap after GC invocations=3 (full 0): + garbage-first heap total 260096K, used 12335K [0x0000000702c00000, 0x0000000800000000) + region size 2048K, 3 young (6144K), 3 survivors (6144K) + Metaspace used 21017K, committed 21248K, reserved 1073152K + class space used 2668K, committed 2752K, reserved 1048576K +} +Event: 4.246 GC heap before +{Heap before GC invocations=4 (full 0): + garbage-first heap total 55296K, used 38959K [0x0000000702c00000, 0x0000000800000000) + region size 2048K, 16 young (32768K), 3 survivors (6144K) + Metaspace used 25469K, committed 25792K, reserved 1073152K + class space used 3427K, committed 3584K, reserved 1048576K +} +Event: 4.253 GC heap after +{Heap after GC invocations=5 (full 0): + garbage-first heap total 55296K, used 13291K [0x0000000702c00000, 0x0000000800000000) + region size 2048K, 1 young (2048K), 1 survivors (2048K) + Metaspace used 25469K, committed 25792K, reserved 1073152K + class space used 3427K, committed 3584K, reserved 1048576K +} + +Deoptimization events (20 events): +Event: 4.437 Thread 0x00000288059c5080 DEOPT PACKING pc=0x000002880edc6be4 sp=0x000000aca80fa0a0 +Event: 4.437 Thread 0x00000288059c5080 DEOPT UNPACKING pc=0x000002880e73dece sp=0x000000aca80f9558 mode 1 +Event: 4.437 Thread 0x00000288059c5080 DEOPT PACKING pc=0x000002880f179794 sp=0x000000aca80faac0 +Event: 4.437 Thread 0x00000288059c5080 DEOPT UNPACKING pc=0x000002880e73dece sp=0x000000aca80f9f90 mode 1 +Event: 4.446 Thread 0x00000288059c5080 DEOPT PACKING pc=0x000002880edcf224 sp=0x000000aca80fcbf0 +Event: 4.446 Thread 0x00000288059c5080 DEOPT UNPACKING pc=0x000002880e73dece sp=0x000000aca80fc088 mode 1 +Event: 4.446 Thread 0x00000288059c5080 DEOPT PACKING pc=0x000002880edc6be4 sp=0x000000aca80fccc0 +Event: 4.446 Thread 0x00000288059c5080 DEOPT UNPACKING pc=0x000002880e73dece sp=0x000000aca80fc178 mode 1 +Event: 4.446 Thread 0x00000288059c5080 DEOPT PACKING pc=0x000002880ee6d9f4 sp=0x000000aca80fd6e0 +Event: 4.446 Thread 0x00000288059c5080 DEOPT UNPACKING pc=0x000002880e73dece sp=0x000000aca80fcbd0 mode 1 +Event: 4.446 Thread 0x00000288059c5080 DEOPT PACKING pc=0x000002880edcf224 sp=0x000000aca80fcbf0 +Event: 4.446 Thread 0x00000288059c5080 DEOPT UNPACKING pc=0x000002880e73dece sp=0x000000aca80fc088 mode 1 +Event: 4.446 Thread 0x00000288059c5080 DEOPT PACKING pc=0x000002880edc6be4 sp=0x000000aca80fccc0 +Event: 4.446 Thread 0x00000288059c5080 DEOPT UNPACKING pc=0x000002880e73dece sp=0x000000aca80fc178 mode 1 +Event: 4.446 Thread 0x00000288059c5080 DEOPT PACKING pc=0x000002880ee6d9f4 sp=0x000000aca80fd6e0 +Event: 4.446 Thread 0x00000288059c5080 DEOPT UNPACKING pc=0x000002880e73dece sp=0x000000aca80fcbd0 mode 1 +Event: 4.451 Thread 0x00000288059c5080 Uncommon trap: trap_request=0xffffff45 fr.pc=0x00000288161c9e70 relative=0x0000000000000250 +Event: 4.451 Thread 0x00000288059c5080 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00000288161c9e70 method=java.lang.String.isLatin1()Z @ 10 c2 +Event: 4.451 Thread 0x00000288059c5080 DEOPT PACKING pc=0x00000288161c9e70 sp=0x000000aca80fc360 +Event: 4.451 Thread 0x00000288059c5080 DEOPT UNPACKING pc=0x000002880e73d72e sp=0x000000aca80fc290 mode 2 + +Classes unloaded (0 events): +No events + +Classes redefined (2 events): +Event: 68.427 Thread 0x000002882a2c5a10 redefined class name=fr.insee.sugoi.ldap.utils.mapper.UserLdapMapperFromAttributesTest, count=1 +Event: 157.648 Thread 0x000002882a2c5a10 redefined class name=fr.insee.sugoi.ldap.utils.mapper.UserLdapMapperFromAttributesTest, count=2 + +Internal exceptions (20 events): +Event: 3.043 Thread 0x00000288059c5080 Exception (0x000000070fe0b988) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\classfile\systemDictionary.cpp, line 256] +Event: 3.045 Thread 0x00000288059c5080 Exception (0x000000070fe141d8) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\classfile\systemDictionary.cpp, line 256] +Event: 3.129 Thread 0x00000288059c5080 Exception (0x000000070fab6fd8) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\classfile\systemDictionary.cpp, line 256] +Event: 3.130 Thread 0x00000288059c5080 Exception (0x000000070fac1c30) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\classfile\systemDictionary.cpp, line 256] +Event: 3.133 Thread 0x00000288059c5080 Exception (0x000000070fadd7f8) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\classfile\systemDictionary.cpp, line 256] +Event: 3.134 Thread 0x00000288059c5080 Exception (0x000000070fae4aa8) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 790] +Event: 3.144 Thread 0x00000288059c5080 Exception (0x000000070f830c30) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 790] +Event: 3.300 Thread 0x000002882e3b8c40 Exception (0x000000070f0d5318) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 790] +Event: 3.647 Thread 0x000002882e3b8c40 Exception (0x0000000705960fe0) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 790] +Event: 3.649 Thread 0x000002882e3b8c40 Exception (0x000000070596c1d8) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 790] +Event: 3.649 Thread 0x000002882e3b8c40 Exception (0x000000070596f9b8) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 790] +Event: 3.651 Thread 0x000002882e3b8c40 Exception (0x000000070597d8d0) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 790] +Event: 3.651 Thread 0x000002882e3b8c40 Exception (0x0000000705981030) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 857] +Event: 3.668 Thread 0x000002882e3b8c40 Exception (0x0000000705621688) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 790] +Event: 3.705 Thread 0x00000288059c5080 Exception (0x0000000705425828) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\classfile\systemDictionary.cpp, line 256] +Event: 3.706 Thread 0x00000288059c5080 Exception (0x00000007054304d8) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\classfile\systemDictionary.cpp, line 256] +Event: 4.233 Thread 0x00000288059c5080 Exception (0x0000000704370140) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 790] +Event: 4.234 Thread 0x00000288059c5080 Exception (0x0000000704379c88) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 857] +Event: 4.338 Thread 0x00000288059c5080 Exception (0x000000070e105040) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\classfile\systemDictionary.cpp, line 256] +Event: 4.447 Thread 0x00000288059c5080 Exception (0x000000070dd921c8) +thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 857] + +Events (20 events): +Event: 160.524 Executing VM operation: get/set locals done +Event: 160.545 Executing VM operation: get/set locals +Event: 160.545 Executing VM operation: get/set locals done +Event: 160.567 Executing VM operation: get/set locals +Event: 160.567 Executing VM operation: get/set locals done +Event: 160.633 Executing VM operation: get/set locals +Event: 160.633 Executing VM operation: get/set locals done +Event: 160.655 Executing VM operation: get/set locals +Event: 160.655 Executing VM operation: get/set locals done +Event: 160.676 Executing VM operation: get/set locals +Event: 160.676 Executing VM operation: get/set locals done +Event: 160.785 Executing VM operation: get/set locals +Event: 160.785 Executing VM operation: get/set locals done +Event: 200.433 Executing VM operation: ChangeBreakpoints +Event: 200.433 Executing VM operation: ChangeBreakpoints done +Event: 202.657 Executing VM operation: ChangeBreakpoints +Event: 202.657 Executing VM operation: ChangeBreakpoints done +Event: 227.470 loading class com/intellij/rt/debugger/BatchEvaluatorServer +Event: 227.470 loading class com/intellij/rt/debugger/BatchEvaluatorServer done +Event: 231.980 Executing VM operation: get/set locals + + +Dynamic libraries: +0x00007ff7111e0000 - 0x00007ff7111ee000 C:\INSEE\jdk-16.0.2+7\bin\java.exe +0x00007ffec1b90000 - 0x00007ffec1d88000 C:\WINDOWS\SYSTEM32\ntdll.dll +0x00007ffebfe80000 - 0x00007ffebff3d000 C:\WINDOWS\System32\KERNEL32.DLL +0x00007ffebf4e0000 - 0x00007ffebf7ae000 C:\WINDOWS\System32\KERNELBASE.dll +0x00007ffebf7e0000 - 0x00007ffebf8e0000 C:\WINDOWS\System32\ucrtbase.dll +0x00007ffeb9700000 - 0x00007ffeb9718000 C:\INSEE\jdk-16.0.2+7\bin\jli.dll +0x00007ffea9e80000 - 0x00007ffea9e99000 C:\INSEE\jdk-16.0.2+7\bin\VCRUNTIME140.dll +0x00007ffebfbf0000 - 0x00007ffebfd90000 C:\WINDOWS\System32\USER32.dll +0x00007ffebfbc0000 - 0x00007ffebfbe2000 C:\WINDOWS\System32\win32u.dll +0x00007ffea07f0000 - 0x00007ffea0a8a000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_60b5254171f9507e\COMCTL32.dll +0x00007ffebfd90000 - 0x00007ffebfdba000 C:\WINDOWS\System32\GDI32.dll +0x00007ffebfdc0000 - 0x00007ffebfe5e000 C:\WINDOWS\System32\msvcrt.dll +0x00007ffebfa40000 - 0x00007ffebfb4b000 C:\WINDOWS\System32\gdi32full.dll +0x00007ffebf440000 - 0x00007ffebf4dd000 C:\WINDOWS\System32\msvcp_win.dll +0x00007ffebffa0000 - 0x00007ffebffd0000 C:\WINDOWS\System32\IMM32.DLL +0x00007ffe8d2c0000 - 0x00007ffe8d364000 C:\Program Files\McAfee\Endpoint Security\Threat Prevention\Ips\EpMPApi.dll +0x00007ffec1810000 - 0x00007ffec1935000 C:\WINDOWS\System32\RPCRT4.dll +0x00007ffec06a0000 - 0x00007ffec074e000 C:\WINDOWS\System32\ADVAPI32.dll +0x00007ffec0590000 - 0x00007ffec062c000 C:\WINDOWS\System32\sechost.dll +0x00007ffebfb50000 - 0x00007ffebfbb7000 C:\WINDOWS\System32\WINTRUST.dll +0x00007ffebf8e0000 - 0x00007ffebfa36000 C:\WINDOWS\System32\CRYPT32.dll +0x00007ffebeea0000 - 0x00007ffebeeb2000 C:\WINDOWS\SYSTEM32\MSASN1.dll +0x0000000050ff0000 - 0x0000000050ffc000 C:\Program Files\McAfee\Endpoint Security\Threat Prevention\Ips\EpMPThe.dll +0x00007ffe903a0000 - 0x00007ffe903f8000 C:\Program Files\McAfee\Endpoint Security\Threat Prevention\Ips\HIPHandlers64.dll +0x00007ffec0df0000 - 0x00007ffec0e45000 C:\WINDOWS\System32\SHLWAPI.dll +0x00007ffebd010000 - 0x00007ffebd1f4000 C:\WINDOWS\SYSTEM32\dbghelp.dll +0x00007ffeb8400000 - 0x00007ffeb840c000 C:\INSEE\jdk-16.0.2+7\bin\vcruntime140_1.dll +0x00007ffe8d6c0000 - 0x00007ffe8d751000 C:\INSEE\jdk-16.0.2+7\bin\msvcp140.dll +0x00007ffe59460000 - 0x00007ffe5a097000 C:\INSEE\jdk-16.0.2+7\bin\server\jvm.dll +0x00007ffebfe60000 - 0x00007ffebfe68000 C:\WINDOWS\System32\PSAPI.DLL +0x00007ffeb7240000 - 0x00007ffeb724a000 C:\WINDOWS\SYSTEM32\VERSION.dll +0x00007ffeac7f0000 - 0x00007ffeac817000 C:\WINDOWS\SYSTEM32\WINMM.dll +0x00007ffea7b50000 - 0x00007ffea7b59000 C:\WINDOWS\SYSTEM32\WSOCK32.dll +0x00007ffec0630000 - 0x00007ffec069b000 C:\WINDOWS\System32\WS2_32.dll +0x00007ffebdb40000 - 0x00007ffebdb52000 C:\WINDOWS\SYSTEM32\kernel.appcore.dll +0x00007ffe93510000 - 0x00007ffe9351a000 C:\INSEE\jdk-16.0.2+7\bin\jimage.dll +0x00007ffeb4fc0000 - 0x00007ffeb4fec000 C:\WINDOWS\SYSTEM32\dbgcore.DLL +0x00007ffebf3b0000 - 0x00007ffebf432000 C:\WINDOWS\System32\bcryptPrimitives.dll +0x00007ffea5a70000 - 0x00007ffea5aab000 C:\INSEE\jdk-16.0.2+7\bin\jdwp.dll +0x00007ffea9f50000 - 0x00007ffea9f5e000 C:\INSEE\jdk-16.0.2+7\bin\instrument.dll +0x00007ffe8bab0000 - 0x00007ffe8bad5000 C:\INSEE\jdk-16.0.2+7\bin\java.dll +0x00007ffe8b990000 - 0x00007ffe8b9a8000 C:\INSEE\jdk-16.0.2+7\bin\zip.dll +0x00007ffec0f90000 - 0x00007ffec16d4000 C:\WINDOWS\System32\SHELL32.dll +0x00007ffebd390000 - 0x00007ffebdb24000 C:\WINDOWS\SYSTEM32\windows.storage.dll +0x00007ffebffd0000 - 0x00007ffec0324000 C:\WINDOWS\System32\combase.dll +0x00007ffebed10000 - 0x00007ffebed40000 C:\WINDOWS\SYSTEM32\Wldp.dll +0x00007ffec0ee0000 - 0x00007ffec0f8d000 C:\WINDOWS\System32\SHCORE.dll +0x00007ffebf1f0000 - 0x00007ffebf20f000 C:\WINDOWS\SYSTEM32\profapi.dll +0x00007ffea5d10000 - 0x00007ffea5d1c000 C:\INSEE\jdk-16.0.2+7\bin\dt_socket.dll +0x00007ffebe710000 - 0x00007ffebe74b000 C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL +0x00007ffebea70000 - 0x00007ffebeada000 C:\WINDOWS\system32\mswsock.dll +0x00007ffe8cc80000 - 0x00007ffe8cc99000 C:\INSEE\jdk-16.0.2+7\bin\net.dll +0x00007ffeba040000 - 0x00007ffeba14a000 C:\WINDOWS\SYSTEM32\WINHTTP.dll +0x00007ffe8ca90000 - 0x00007ffe8caa3000 C:\INSEE\jdk-16.0.2+7\bin\nio.dll +0x00007ffe90530000 - 0x00007ffe90540000 C:\INSEE\jdk-16.0.2+7\bin\verify.dll +0x00007ffeb94c0000 - 0x00007ffeb94c9000 C:\INSEE\jdk-16.0.2+7\bin\management.dll +0x00007ffea9f60000 - 0x00007ffea9f6b000 C:\INSEE\jdk-16.0.2+7\bin\management_ext.dll +0x00007ffeaf430000 - 0x00007ffeaf447000 C:\WINDOWS\system32\napinsp.dll +0x00007ffeaf3e0000 - 0x00007ffeaf3fb000 C:\WINDOWS\system32\pnrpnsp.dll +0x00007ffeb9fb0000 - 0x00007ffeb9fc5000 C:\WINDOWS\system32\wshbth.dll +0x00007ffeba020000 - 0x00007ffeba03d000 C:\WINDOWS\system32\NLAapi.dll +0x00007ffebe750000 - 0x00007ffebe81b000 C:\WINDOWS\SYSTEM32\DNSAPI.dll +0x00007ffebfe70000 - 0x00007ffebfe78000 C:\WINDOWS\System32\NSI.dll +0x00007ffeaf480000 - 0x00007ffeaf492000 C:\WINDOWS\System32\winrnr.dll +0x00007ffeb6c30000 - 0x00007ffeb6c3a000 C:\Windows\System32\rasadhlp.dll +0x00007ffeba150000 - 0x00007ffeba1d0000 C:\WINDOWS\System32\fwpuclnt.dll +0x00007ffebf7b0000 - 0x00007ffebf7d7000 C:\WINDOWS\System32\bcrypt.dll + +dbghelp: loaded successfully - version: 4.0.5 - missing functions: none +symbol engine: initialized successfully - sym options: 0x614 - pdb path: .;C:\INSEE\jdk-16.0.2+7\bin;C:\WINDOWS\SYSTEM32;C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_60b5254171f9507e;C:\Program Files\McAfee\Endpoint Security\Threat Prevention\Ips;C:\INSEE\jdk-16.0.2+7\bin\server + +VM Arguments: +jvm_args: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:56005,suspend=y,server=n -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:C:\Users\RMBH0V\AppData\Local\JetBrains\IntelliJIdea2022.1\captureAgent\debugger-agent.jar=file:/C:/Users/RMBH0V/AppData/Local/Temp/capture.props -Dfile.encoding=UTF-8 +java_command: com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit5 @w@C:\Users\RMBH0V\AppData\Local\Temp\idea_working_dirs_junit.tmp @C:\Users\RMBH0V\AppData\Local\Temp\idea_junit.tmp +java_class_path (initial): C:\Users\RMBH0V\.m2\repository\org\junit\platform\junit-platform-launcher\1.8.2\junit-platform-launcher-1.8.2.jar;C:\Users\RMBH0V\AppData\Local\JetBrains\IntelliJ IDEA 2022.1.3\lib\idea_rt.jar;C:\Users\RMBH0V\AppData\Local\JetBrains\IntelliJ IDEA 2022.1.3\plugins\junit\lib\junit5-rt.jar;C:\Users\RMBH0V\AppData\Local\JetBrains\IntelliJ IDEA 2022.1.3\plugins\junit\lib\junit-rt.jar;C:\INSEE\dev\sugoi-api\sugoi-api-ldap-utils\target\test-classes;C:\INSEE\dev\sugoi-api\sugoi-api-ldap-utils\target\classes;C:\Users\RMBH0V\.m2\repository\com\unboundid\unboundid-ldapsdk\6.0.5\unboundid-ldapsdk-6.0.5.jar;C:\INSEE\dev\sugoi-api\sugoi-api-core\target\classes;C:\Users\RMBH0V\.m2\repository\org\springframework\boot\spring-boot-starter-cache\2.7.2\spring-boot-starter-cache-2.7.2.jar;C:\Users\RMBH0V\.m2\repository\org\springframework\spring-context-support\5.3.22\spring-context-support-5.3.22.jar;C:\Users\RMBH0V\.m2\repository\org\springframework\spring-beans\5.3.22\spring-beans-5.3.22.jar;C:\Users\RMBH0V\.m2\repository\org\springframework\spring-context\5.3.22\spring-context-5.3.22.jar;C:\Users\RMBH0V\.m2\repository\org\springframework\spring-expression\5.3.22\spring-expression-5.3.22.jar;C:\Users\RMBH0V\.m2\repository\org\apache\commons\commons-lang3\3.12.0\commons-lang3-3.12.0.jar;C:\INSEE\dev\sugoi-api\sugoi-api-model\target\classes;C:\Users\RMBH0V\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.13.3\jackson-databind-2.13.3.jar;C:\Users\RMBH0V\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.13.3\jackson-annotations-2.13.3.jar;C:\Users\RMBH0V\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.13.3\jackson-core-2.13.3.jar;C:\Users\RMBH0V\.m2\repository\net\sf\ehcache\ehcache\2.10.9.2\ehcache-2.10.9.2.jar;C:\Users\RMBH0V\.m2\repository\org\slf4j\slf4j-api\1.7.36\slf4j-api-1.7.36.jar;C:\Users\RMBH0V\.m2\repository\org\passay\passay\1.6.2\passay-1.6.2.jar;C:\Users\RMBH0V\.m2\repository\commons-lang\commons-lang\2.6\comm +Launcher Type: SUN_STANDARD + +[Global flags] + intx CICompilerCount = 4 {product} {ergonomic} + uint ConcGCThreads = 2 {product} {ergonomic} + uint G1ConcRefinementThreads = 8 {product} {ergonomic} + size_t G1HeapRegionSize = 2097152 {product} {ergonomic} + uintx GCDrainStackTargetSize = 64 {product} {ergonomic} + size_t InitialHeapSize = 266338304 {product} {ergonomic} + size_t MarkStackSize = 4194304 {product} {ergonomic} + size_t MaxHeapSize = 4248829952 {product} {ergonomic} + size_t MaxNewSize = 2548039680 {product} {ergonomic} + size_t MinHeapDeltaBytes = 2097152 {product} {ergonomic} + size_t MinHeapSize = 8388608 {product} {ergonomic} + uintx NonNMethodCodeHeapSize = 5839372 {pd product} {ergonomic} + uintx NonProfiledCodeHeapSize = 122909434 {pd product} {ergonomic} + uintx ProfiledCodeHeapSize = 122909434 {pd product} {ergonomic} + uintx ReservedCodeCacheSize = 251658240 {pd product} {ergonomic} + bool SegmentedCodeCache = true {product} {ergonomic} + size_t SoftMaxHeapSize = 4248829952 {manageable} {ergonomic} + bool UseCompressedClassPointers = true {product lp64_product} {ergonomic} + bool UseCompressedOops = true {product lp64_product} {ergonomic} + bool UseG1GC = true {product} {ergonomic} + bool UseLargePagesIndividualAllocation = false {pd product} {ergonomic} + +Logging: +Log output configuration: + #0: stdout all=warning uptime,level,tags + #1: stderr all=off uptime,level,tags + +Environment Variables: +JAVA_HOME=C:\INSEE\jdk-11.0.16+8 +PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\RMBH0V\AppData\Local\Microsoft\WindowsApps;C:\Users\RMBH0V\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\RMBH0V\AppData\Local\Programs\Git\cmd;C:\INSEE\node\node-v16.13.1-win-x64;C:\INSEE\apache-maven-3.8.4\bin;C:\INSEE\node\node_modules\yarn\bin;C:\Users\RMBH0V\IntelliJ IDEA 2021.3.1\bin;C:\\INSEE\\Kube;C:\\INSEE\\home\\.vs-kubernetes\\tools\\helm\\windows-amd64\\helm.exe;C:\\INSEE\\home\\.vs-kubernetes\\tools\\kubectl\\kubectl.exe;C:\\INSEE\\home\\.vs-kubernetes\\tools\\minikube\\windows-amd64\\minikube.exe;C:\INSEE\Cmder\bin;C:\INSEE\pg_clients\pgsql\bin;C:\ProgramData\RMBH0V\gitkraken\bin;C:\Users\RMBH0V\AppData\Local\JetBrains\IntelliJ IDEA 2022.1.3\bin;C:\Users\RMBH0V\AppData\Local\gitkraken\bin;C:\INSEE\jdk-11.0.16+8\bin; +USERNAME=RMBH0V +OS=Windows_NT +PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 142 Stepping 12, GenuineIntel + + + +--------------- S Y S T E M --------------- + +OS: + Windows 10 , 64 bit Build 19041 (10.0.19041.1806) +OS uptime: 20 days 7:39 hours + +CPU: total 8 (initial active 8) (4 cores per cpu, 2 threads per core) family 6 model 142 stepping 12 microcode 0xf0, cx8, cmov, fxsr, ht, mmx, 3dnowpref, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, lzcnt, tsc, tscinvbit, avx, avx2, aes, erms, clmul, bmi1, bmi2, adx, fma, vzeroupper, clflush, clflushopt + +Memory: 4k page, system-wide physical 16204M (1634M free) +TotalPageFile size 32501M (AvailPageFile size 4563M) +current process WorkingSet (physical memory assigned to process): 134M, peak: 214M +current process commit charge ("private bytes"): 189M, peak: 438M + +vm_info: OpenJDK 64-Bit Server VM (16.0.2+7) for windows-amd64 JRE (16.0.2+7), built on Jul 22 2021 15:19:09 by "" with MS VC++ 16.7 (VS2019) + +END. diff --git a/sugoi-api-ldap-utils/src/main/java/fr/insee/sugoi/ldap/utils/mapper/GenericLdapMapper.java b/sugoi-api-ldap-utils/src/main/java/fr/insee/sugoi/ldap/utils/mapper/GenericLdapMapper.java index 723a75b3..16386467 100644 --- a/sugoi-api-ldap-utils/src/main/java/fr/insee/sugoi/ldap/utils/mapper/GenericLdapMapper.java +++ b/sugoi-api-ldap-utils/src/main/java/fr/insee/sugoi/ldap/utils/mapper/GenericLdapMapper.java @@ -31,11 +31,7 @@ import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.security.cert.CertificateException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.List; -import java.util.Map; +import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.stream.Collectors; @@ -193,25 +189,36 @@ private static Object transformLdapAttributeToSugoiAttribute( .map(attributeValue -> new User(LdapUtils.getNodeValueFromDN(attributeValue))) .collect(Collectors.toList()); case LIST_GROUP: - values = new ArrayList<>(); - attrs.stream().forEach(attribute -> values.addAll(Arrays.asList(attribute.getValues()))); - return values.stream() + Pattern patternSuffixGroup = + Pattern.compile( + config.get(LdapConfigKeys.GROUP_SOURCE_PATTERN).replace("{appliname}", "(.*)")); + Pattern patternGroupManager = + Pattern.compile( + config + .get(LdapConfigKeys.GROUP_MANAGER_SOURCE_PATTERN) + .replace("{appliname}", "(.*)")); + return attrs.stream() + .flatMap(attribute -> Arrays.stream(attribute.getValues())) .map( attributeValue -> { - Pattern pattern = - Pattern.compile( - config - .get(LdapConfigKeys.GROUP_SOURCE_PATTERN) - .replace("{appliname}", "(.*)")); - Matcher matcher = - pattern.matcher(attributeValue.substring(attributeValue.indexOf(",") + 1)); - if (matcher.matches()) { + // Match only suffix from application group + // TODO : Match real value of GROUP_SOURCE_PATTERN and not with substring(), + // without breaking other tests + String suffixGroup = attributeValue.substring(attributeValue.indexOf(",") + 1); + Matcher matcherSuffixGroup = patternSuffixGroup.matcher(suffixGroup); + // Match exact group pattern + Matcher matcherGroupManager = patternGroupManager.matcher(attributeValue); + if (matcherSuffixGroup.matches()) { + return new Group( + LdapUtils.getNodeValueFromDN(attributeValue), matcherSuffixGroup.group(1)); + } else if (matcherGroupManager.matches()) { return new Group( - LdapUtils.getNodeValueFromDN(attributeValue), matcher.group(1)); + LdapUtils.getNodeValueFromDN(attributeValue), matcherGroupManager.group(1)); } else { return null; } }) + .filter(Objects::nonNull) .collect(Collectors.toList()); case LIST_STRING: values = new ArrayList<>(); diff --git a/sugoi-api-ldap-utils/src/test/java/fr/insee/sugoi/ldap/utils/mapper/UserLdapMapperFromAttributesTest.java b/sugoi-api-ldap-utils/src/test/java/fr/insee/sugoi/ldap/utils/mapper/UserLdapMapperFromAttributesTest.java index 429be5f6..b6950388 100644 --- a/sugoi-api-ldap-utils/src/test/java/fr/insee/sugoi/ldap/utils/mapper/UserLdapMapperFromAttributesTest.java +++ b/sugoi-api-ldap-utils/src/test/java/fr/insee/sugoi/ldap/utils/mapper/UserLdapMapperFromAttributesTest.java @@ -28,13 +28,7 @@ import java.security.cert.X509Certificate; import java.text.ParseException; import java.time.Instant; -import java.util.ArrayList; -import java.util.Base64; -import java.util.Collection; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; +import java.util.*; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @@ -53,6 +47,9 @@ public void setup() { config.put( LdapConfigKeys.GROUP_SOURCE_PATTERN, "ou={appliname}_Objets,ou={appliname},ou=Applications,o=insee,c=fr"); + config.put( + LdapConfigKeys.GROUP_MANAGER_SOURCE_PATTERN, + "cn=ASI_{appliname},ou={appliname},ou=Applications,o=insee,c=fr"); userLdapMapper = new UserLdapMapper(config, StoreMappingFixture.getUserStoreMappings()); } @@ -171,21 +168,39 @@ public void getUserGroupFromAttributes() { "memberOf", "cn=admin,ou=monappli_Objets,ou=monappli,ou=Applications,o=insee,c=fr"); Attribute groupAttributes2 = new Attribute( - "memberOf", "cn=reader,ou=monappli_Objets,ou=monappli,ou=Applications,o=insee,c=fr"); - Collection attributes = new ArrayList<>(); - attributes.add(groupAttributes1); - attributes.add(groupAttributes2); + "memberOf", "cn=reader,ou=monappli2_Objets,ou=monappli2,ou=Applications,o=insee,c=fr"); + + Collection attributes = List.of(groupAttributes1, groupAttributes2); User mappedUser = userLdapMapper.mapFromAttributes(attributes); assertThat( - "Should have admin group", + "monappli App should have admin name", mappedUser.getGroups().stream().anyMatch(group -> group.getName().equals("admin"))); assertThat( - "Admin group should have monappli app name", - mappedUser.getGroups().stream().anyMatch(group -> group.getAppName().equals("monappli"))); + "Reader group should have monappli2 app name", + mappedUser.getGroups().stream().anyMatch(group -> group.getAppName().equals("monappli2"))); + } + + @Test + public void getUserManagerGroupFromAttribute() { + Attribute groupAttributesASI = + new Attribute("memberOf", "cn=ASI_toto,ou=toto,ou=Applications,o=insee,c=fr"); + + Attribute groupAttributes = + new Attribute( + "memberOf", "cn=admin,ou=monappli_Objets,ou=monappli,ou=Applications,o=insee,c=fr"); + Collection attributes = List.of(groupAttributesASI, groupAttributes); + User mappedUser = userLdapMapper.mapFromAttributes(attributes); + + assertThat( + "Manager group should have group ASI_toto name", + mappedUser.getGroups().stream().anyMatch(group -> group.getName().equals("ASI_toto"))); + assertThat( + "Admin group should display admin name", + mappedUser.getGroups().stream().anyMatch(group -> group.getName().equals("admin"))); assertThat( - "Should have admin group", - mappedUser.getGroups().stream().anyMatch(group -> group.getName().equals("reader"))); + "Manager group should have toto app name", + mappedUser.getGroups().stream().anyMatch(group -> group.getAppName().equals("toto"))); } @Test From cd8c8253e1c6b0b156a101c129963b1c8c0ea512 Mon Sep 17 00:00:00 2001 From: Mehdi Maaref Date: Tue, 23 Aug 2022 16:58:25 +0200 Subject: [PATCH 2/2] [ENH] :sparkles: Clean unnecessary lines in Ldap-utils Signed-off-by: Mehdi Maaref --- .../insee/sugoi/ldap/LdapWriterStoreTest.java | 9 +- sugoi-api-ldap-utils/hs_err_pid15472.log | 534 ------------------ .../UserLdapMapperFromAttributesTest.java | 40 +- .../mapper/UserLdapMapperFromObjectTest.java | 4 +- 4 files changed, 20 insertions(+), 567 deletions(-) delete mode 100644 sugoi-api-ldap-utils/hs_err_pid15472.log diff --git a/sugoi-api-ldap-store-provider/src/test/java/fr/insee/sugoi/ldap/LdapWriterStoreTest.java b/sugoi-api-ldap-store-provider/src/test/java/fr/insee/sugoi/ldap/LdapWriterStoreTest.java index 0f0bf536..1d6c5a79 100644 --- a/sugoi-api-ldap-store-provider/src/test/java/fr/insee/sugoi/ldap/LdapWriterStoreTest.java +++ b/sugoi-api-ldap-store-provider/src/test/java/fr/insee/sugoi/ldap/LdapWriterStoreTest.java @@ -114,10 +114,8 @@ public Realm realm() { PostalAddress addressOrga; PostalAddress addressToto; - @Bean(name = "Realm") @BeforeEach public void setup() { - ldapWriterStore = (LdapWriterStore) context.getBean("LdapWriterStore", realm(), userStorage()); ldapReaderStore = (LdapReaderStore) context.getBean("LdapReaderStore", realm(), userStorage()); addressOrga = new PostalAddress(); @@ -257,8 +255,11 @@ public void testDeleteUser() { .anyMatch(user -> user.getUsername().equalsIgnoreCase("byebye"))); assertThat( "byebye is in Utilisateurs_Applitest", - ldapReaderStore.getUsersInGroup("Applitest", "Utilisateurs_Applitest").getResults().stream() - .noneMatch(user -> user.getUsername().equalsIgnoreCase("byebye"))); + !ldapReaderStore + .getUsersInGroup("Applitest", "Utilisateurs_Applitest") + .getResults() + .stream() + .anyMatch(user -> user.getUsername().equalsIgnoreCase("byebye"))); } @Test diff --git a/sugoi-api-ldap-utils/hs_err_pid15472.log b/sugoi-api-ldap-utils/hs_err_pid15472.log deleted file mode 100644 index f838767f..00000000 --- a/sugoi-api-ldap-utils/hs_err_pid15472.log +++ /dev/null @@ -1,534 +0,0 @@ -# -# A fatal error has been detected by the Java Runtime Environment: -# -# Internal Error (generateOopMap.cpp:2164), pid=15472, tid=22072 -# fatal error: Illegal class file encountered. Try running with -Xverify:all in method setup -# -# JRE version: OpenJDK Runtime Environment Temurin-16.0.2+7 (16.0.2+7) (build 16.0.2+7) -# Java VM: OpenJDK 64-Bit Server VM Temurin-16.0.2+7 (16.0.2+7, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64) -# No core dump will be written. Minidumps are not enabled by default on client versions of Windows -# -# If you would like to submit a bug report, please visit: -# https://github.com/adoptium/adoptium-support/issues -# - ---------------- S U M M A R Y ------------ - -Command Line: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:56005,suspend=y,server=n -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:C:\Users\RMBH0V\AppData\Local\JetBrains\IntelliJIdea2022.1\captureAgent\debugger-agent.jar=file:/C:/Users/RMBH0V/AppData/Local/Temp/capture.props -Dfile.encoding=UTF-8 com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit5 @w@C:\Users\RMBH0V\AppData\Local\Temp\idea_working_dirs_junit.tmp @C:\Users\RMBH0V\AppData\Local\Temp\idea_junit.tmp - -Host: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz, 8 cores, 15G, Windows 10 , 64 bit Build 19041 (10.0.19041.1806) -Time: Mon Aug 22 18:31:11 2022 Paris, Madrid (heure duild 19041 (10.0.19041.1806) elapsed time: 231.987057 seconds (0d 0h 3m 51s) - ---------------- T H R E A D --------------- - -Current thread (0x000002882a2c5a10): VMThread "VM Thread" [stack: 0x000000aca8600000,0x000000aca8700000] [id=22072] - -Stack: [0x000000aca8600000,0x000000aca8700000] -Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) -V [jvm.dll+0x67918a] -V [jvm.dll+0x82b819] -V [jvm.dll+0x82cfce] -V [jvm.dll+0x82d5d7] -V [jvm.dll+0x24e993] -V [jvm.dll+0x33df99] -V [jvm.dll+0x33a444] -V [jvm.dll+0x33c37b] -V [jvm.dll+0x33c9ce] -V [jvm.dll+0x33a04f] -V [jvm.dll+0x3392d7] -V [jvm.dll+0x667bfe] -V [jvm.dll+0x667903] -V [jvm.dll+0x62b9f8] -V [jvm.dll+0x8232a5] -V [jvm.dll+0x52f3d6] -V [jvm.dll+0x831a5b] -V [jvm.dll+0x8326a4] -V [jvm.dll+0x832ba9] -V [jvm.dll+0x832e64] -V [jvm.dll+0x832f30] -V [jvm.dll+0x7da77a] -V [jvm.dll+0x677fb6] -C [ucrtbase.dll+0x21bb2] -C [KERNEL32.DLL+0x17034] -C [ntdll.dll+0x52651] - -VM_Operation (0x000000aca91ff560): get/set locals, mode: safepoint, requested by thread 0x000002882adac310 - - ---------------- P R O C E S S --------------- - -Threads class SMR info: -_java_thread_list=0x000002882e61fbe0, length=15, elements={ -0x00000288059c5080, 0x000002882a2ca570, 0x000002882a2cb340, 0x000002882ac08310, -0x000002882ac0cc40, 0x000002882ac0d550, 0x000002882ac0de60, 0x000002882ac13fb0, -0x000002882ac21930, 0x000002882ac24290, 0x000002882a2aa250, 0x000002882adac310, -0x000002882adc7c70, 0x000002882adc81b0, 0x000002882add9470 -} - -Java Threads: ( => current thread ) - 0x00000288059c5080 JavaThread "main" [_thread_blocked, id=7964, stack(0x000000aca8000000,0x000000aca8100000)] - 0x000002882a2ca570 JavaThread "Reference Handler" daemon [_thread_blocked, id=11824, stack(0x000000aca8700000,0x000000aca8800000)] - 0x000002882a2cb340 JavaThread "Finalizer" daemon [_thread_blocked, id=27148, stack(0x000000aca8800000,0x000000aca8900000)] - 0x000002882ac08310 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=14272, stack(0x000000aca8900000,0x000000aca8a00000)] - 0x000002882ac0cc40 JavaThread "Attach Listener" daemon [_thread_blocked, id=10572, stack(0x000000aca8a00000,0x000000aca8b00000)] - 0x000002882ac0d550 JavaThread "Service Thread" daemon [_thread_blocked, id=8564, stack(0x000000aca8b00000,0x000000aca8c00000)] - 0x000002882ac0de60 JavaThread "Monitor Deflation Thread" daemon [_thread_blocked, id=4216, stack(0x000000aca8c00000,0x000000aca8d00000)] - 0x000002882ac13fb0 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=9320, stack(0x000000aca8d00000,0x000000aca8e00000)] - 0x000002882ac21930 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=14864, stack(0x000000aca8e00000,0x000000aca8f00000)] - 0x000002882ac24290 JavaThread "Sweeper thread" daemon [_thread_blocked, id=29304, stack(0x000000aca8f00000,0x000000aca9000000)] - 0x000002882a2aa250 JavaThread "Common-Cleaner" daemon [_thread_blocked, id=10416, stack(0x000000aca9000000,0x000000aca9100000)] - 0x000002882adac310 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=21304, stack(0x000000aca9100000,0x000000aca9200000)] - 0x000002882adc7c70 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=9344, stack(0x000000aca9200000,0x000000aca9300000)] - 0x000002882adc81b0 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=29164, stack(0x000000aca9300000,0x000000aca9400000)] - 0x000002882add9470 JavaThread "Notification Thread" daemon [_thread_blocked, id=14256, stack(0x000000aca9400000,0x000000aca9500000)] - -Other Threads: -=>0x000002882a2c5a10 VMThread "VM Thread" [stack: 0x000000aca8600000,0x000000aca8700000] [id=22072] - 0x000002882adccf40 WatcherThread [stack: 0x000000aca9500000,0x000000aca9600000] [id=8656] - 0x0000028805a15580 GCTaskThread "GC Thread#0" [stack: 0x000000aca8100000,0x000000aca8200000] [id=11992] - 0x000002882b8eb980 GCTaskThread "GC Thread#1" [stack: 0x000000aca9700000,0x000000aca9800000] [id=20364] - 0x000002882babd7a0 GCTaskThread "GC Thread#2" [stack: 0x000000aca9800000,0x000000aca9900000] [id=25572] - 0x000002882babdab0 GCTaskThread "GC Thread#3" [stack: 0x000000aca9900000,0x000000aca9a00000] [id=13768] - 0x000002882babddc0 GCTaskThread "GC Thread#4" [stack: 0x000000aca9a00000,0x000000aca9b00000] [id=2272] - 0x000002882b52d9e0 GCTaskThread "GC Thread#5" [stack: 0x000000aca9b00000,0x000000aca9c00000] [id=8784] - 0x000002882b58e930 GCTaskThread "GC Thread#6" [stack: 0x000000aca9c00000,0x000000aca9d00000] [id=14964] - 0x000002882b58ec40 GCTaskThread "GC Thread#7" [stack: 0x000000aca9d00000,0x000000aca9e00000] [id=27492] - 0x0000028805a26310 ConcurrentGCThread "G1 Main Marker" [stack: 0x000000aca8200000,0x000000aca8300000] [id=10108] - 0x0000028805a27920 ConcurrentGCThread "G1 Conc#0" [stack: 0x000000aca8300000,0x000000aca8400000] [id=12320] - 0x000002882e625950 ConcurrentGCThread "G1 Conc#1" [stack: 0x000000acaa000000,0x000000acaa100000] [id=14836] - 0x0000028805a5dc40 ConcurrentGCThread "G1 Refine#0" [stack: 0x000000aca8400000,0x000000aca8500000] [id=17228] - 0x0000028805a5e5d0 ConcurrentGCThread "G1 Service" [stack: 0x000000aca8500000,0x000000aca8600000] [id=28268] - -Threads with active compile tasks: - -VM state: at safepoint (normal execution) - -VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event]) -[0x00000288059c27c0] Threads_lock - owner thread: 0x000002882a2c5a10 - -Heap address: 0x0000000702c00000, size: 4052 MB, Compressed Oops mode: Zero based, Oop shift amount: 3 - -CDS archive(s) mapped at: [0x0000000800000000-0x0000000800bf0000-0x0000000800bf0000), size 12517376, SharedBaseAddress: 0x0000000800000000, ArchiveRelocationMode: 0. -Compressed class space mapped at: 0x0000000800c00000-0x0000000840c00000, reserved size: 1073741824 -Narrow klass base: 0x0000000800000000, Narrow klass shift: 3, Narrow klass range: 0x100000000 - -GC Precious Log: - CPUs: 8 total, 8 available - Memory: 16204M - Large Page Support: Disabled - NUMA Support: Disabled - Compressed Oops: Enabled (Zero based) - Heap Region Size: 2M - Heap Min Capacity: 8M - Heap Initial Capacity: 254M - Heap Max Capacity: 4052M - Pre-touch: Disabled - Parallel Workers: 8 - Concurrent Workers: 2 - Concurrent Refinement Workers: 8 - Periodic GC: Disabled - -Heap: - garbage-first heap total 55296K, used 21483K [0x0000000702c00000, 0x0000000800000000) - region size 2048K, 6 young (12288K), 1 survivors (2048K) - Metaspace used 26612K, committed 26880K, reserved 1073152K - class space used 3630K, committed 3776K, reserved 1048576K - -Heap Regions: E=young(eden), S=young(survivor), O=old, HS=humongous(starts), HC=humongous(continues), CS=collection set, F=free, OA=open archive, CA=closed archive, TAMS=top-at-mark-start (previous, next) -| 0|0x0000000702c00000, 0x0000000702e00000, 0x0000000702e00000|100%|HS| |TAMS 0x0000000702e00000, 0x0000000702c00000| Complete -| 1|0x0000000702e00000, 0x0000000703000000, 0x0000000703000000|100%| O| |TAMS 0x0000000703000000, 0x0000000702e00000| Untracked -| 2|0x0000000703000000, 0x0000000703200000, 0x0000000703200000|100%| O| |TAMS 0x0000000703200000, 0x0000000703000000| Untracked -| 3|0x0000000703200000, 0x0000000703396000, 0x0000000703400000| 79%| O| |TAMS 0x0000000703396000, 0x0000000703200000| Untracked -| 4|0x0000000703400000, 0x0000000703600000, 0x0000000703600000|100%| O| |TAMS 0x0000000703400000, 0x0000000703400000| Untracked -| 5|0x0000000703600000, 0x0000000703800000, 0x0000000703800000|100%| O| |TAMS 0x0000000703600000, 0x0000000703600000| Untracked -| 6|0x0000000703800000, 0x0000000703822200, 0x0000000703a00000| 6%| O| |TAMS 0x0000000703800000, 0x0000000703800000| Untracked -| 7|0x0000000703a00000, 0x0000000703a00000, 0x0000000703c00000| 0%| F| |TAMS 0x0000000703a00000, 0x0000000703a00000| Untracked -| 8|0x0000000703c00000, 0x0000000703c00000, 0x0000000703e00000| 0%| F| |TAMS 0x0000000703c00000, 0x0000000703c00000| Untracked -| 9|0x0000000703e00000, 0x0000000703e00000, 0x0000000704000000| 0%| F| |TAMS 0x0000000703e00000, 0x0000000703e00000| Untracked -| 10|0x0000000704000000, 0x0000000704142a80, 0x0000000704200000| 63%| S|CS|TAMS 0x0000000704000000, 0x0000000704000000| Complete -| 11|0x0000000704200000, 0x0000000704200000, 0x0000000704400000| 0%| F| |TAMS 0x0000000704200000, 0x0000000704200000| Untracked -| 12|0x0000000704400000, 0x0000000704400000, 0x0000000704600000| 0%| F| |TAMS 0x0000000704400000, 0x0000000704400000| Untracked -| 13|0x0000000704600000, 0x0000000704600000, 0x0000000704800000| 0%| F| |TAMS 0x0000000704600000, 0x0000000704600000| Untracked -| 14|0x0000000704800000, 0x0000000704800000, 0x0000000704a00000| 0%| F| |TAMS 0x0000000704800000, 0x0000000704800000| Untracked -| 15|0x0000000704a00000, 0x0000000704a00000, 0x0000000704c00000| 0%| F| |TAMS 0x0000000704a00000, 0x0000000704a00000| Untracked -| 16|0x0000000704c00000, 0x0000000704c00000, 0x0000000704e00000| 0%| F| |TAMS 0x0000000704c00000, 0x0000000704c00000| Untracked -| 17|0x0000000704e00000, 0x0000000704e00000, 0x0000000705000000| 0%| F| |TAMS 0x0000000704e00000, 0x0000000704e00000| Untracked -| 18|0x0000000705000000, 0x0000000705000000, 0x0000000705200000| 0%| F| |TAMS 0x0000000705000000, 0x0000000705000000| Untracked -| 19|0x0000000705200000, 0x0000000705200000, 0x0000000705400000| 0%| F| |TAMS 0x0000000705200000, 0x0000000705200000| Untracked -| 20|0x0000000705400000, 0x0000000705400000, 0x0000000705600000| 0%| F| |TAMS 0x0000000705400000, 0x0000000705400000| Untracked -| 21|0x0000000705600000, 0x0000000705600000, 0x0000000705800000| 0%| F| |TAMS 0x0000000705600000, 0x0000000705600000| Untracked -| 22|0x0000000705800000, 0x000000070583c558, 0x0000000705a00000| 11%| E| |TAMS 0x0000000705800000, 0x0000000705800000| Complete -| 88|0x000000070dc00000, 0x000000070de00000, 0x000000070de00000|100%| E|CS|TAMS 0x000000070dc00000, 0x000000070dc00000| Complete -| 89|0x000000070de00000, 0x000000070e000000, 0x000000070e000000|100%| E|CS|TAMS 0x000000070de00000, 0x000000070de00000| Complete -| 90|0x000000070e000000, 0x000000070e200000, 0x000000070e200000|100%| E|CS|TAMS 0x000000070e000000, 0x000000070e000000| Complete -| 126|0x0000000712800000, 0x0000000712a00000, 0x0000000712a00000|100%| E|CS|TAMS 0x0000000712800000, 0x0000000712800000| Complete - -Card table byte_map: [0x000002881e940000,0x000002881f130000] _byte_map_base: 0x000002881b12a000 - -Marking Bits (Prev, Next): (CMBitMap*) 0x0000028805a15bc0, (CMBitMap*) 0x0000028805a15b80 - Prev Bits: [0x0000028823870000, 0x00000288277c0000) - Next Bits: [0x000002881f920000, 0x0000028823870000) - -Polling page: 0x0000028804130000 - -Metaspace: - -Usage: - Non-class: 22.44 MB used. - Class: 3.55 MB used. - Both: 25.99 MB used. - -Virtual space: - Non-class space: 24.00 MB reserved, 22.56 MB ( 94%) committed, 3 nodes. - Class space: 1.00 GB reserved, 3.69 MB ( <1%) committed, 1 nodes. - Both: 1.02 GB reserved, 26.25 MB ( 3%) committed. - -Chunk freelists: - Non-Class: 640.00 KB - Class: 272.00 KB - Both: 912.00 KB - -MaxMetaspaceSize: 17179869184.00 GB -CompressedClassSpaceSize: 1.00 GB - - commit_granule_bytes: 65536. - - commit_granule_words: 8192. - - virtual_space_node_default_size: 1048576. - - enlarge_chunks_in_place: 1. - - new_chunks_are_fully_committed: 0. - - uncommit_free_chunks: 1. - - use_allocation_guard: 0. - - handle_deallocations: 1. - - -Internal statistics: - -num_allocs_failed_limit: 3. -num_arena_births: 280. -num_arena_deaths: 0. -num_vsnodes_births: 4. -num_vsnodes_deaths: 0. -num_space_committed: 420. -num_space_uncommitted: 0. -num_chunks_returned_to_freelist: 3. -num_chunks_taken_from_freelist: 1197. -num_chunk_merges: 3. -num_chunk_splits: 841. -num_chunks_enlarged: 674. -num_purges: 0. - -CodeHeap 'non-profiled nmethods': size=120000Kb used=1619Kb max_used=1619Kb free=118380Kb - bounds [0x00000288161c0000, 0x0000028816430000, 0x000002881d6f0000] -CodeHeap 'profiled nmethods': size=120000Kb used=5544Kb max_used=5544Kb free=114456Kb - bounds [0x000002880ec90000, 0x000002880f200000, 0x00000288161c0000] -CodeHeap 'non-nmethods': size=5760Kb used=1300Kb max_used=1381Kb free=4460Kb - bounds [0x000002880e6f0000, 0x000002880e960000, 0x000002880ec90000] - total_blobs=3184 nmethods=2655 adapters=439 - compilation: enabled - stopped_count=0, restarted_count=0 - full_count=0 - -Compilation events (20 events): -Event: 4.429 Thread 0x000002882ac21930 2647 3 java.nio.CharBuffer::arrayOffset (35 bytes) -Event: 4.429 Thread 0x000002882ac21930 nmethod 2647 0x000002880f1f3310 code [0x000002880f1f34e0, 0x000002880f1f37d8] -Event: 4.431 Thread 0x000002882ac13fb0 nmethod 2644 0x0000028816352510 code [0x00000288163526a0, 0x0000028816352b98] -Event: 4.431 Thread 0x000002882ac13fb0 2648 4 java.nio.ByteBuffer:: (14 bytes) -Event: 4.434 Thread 0x000002882ae8f5c0 nmethod 2645 0x0000028816352f10 code [0x00000288163530a0, 0x00000288163537f8] -Event: 4.436 Thread 0x000002882ac13fb0 nmethod 2648 0x0000028816353d10 code [0x0000028816353ea0, 0x00000288163544f8] -Event: 4.447 Thread 0x000002882ac21930 2649 3 java.lang.invoke.BoundMethodHandle::editor (8 bytes) -Event: 4.448 Thread 0x000002882ac21930 nmethod 2649 0x000002880f1f3910 code [0x000002880f1f3ae0, 0x000002880f1f3ea8] -Event: 4.451 Thread 0x000002882ac21930 2650 3 jdk.internal.misc.VM::isSupportedClassFileVersion (39 bytes) -Event: 4.451 Thread 0x000002882ac21930 nmethod 2650 0x000002880f1f4090 code [0x000002880f1f4240, 0x000002880f1f44d8] -Event: 4.451 Thread 0x000002882ac21930 2651 3 jdk.internal.org.objectweb.asm.ClassReader::readConst (276 bytes) -Event: 4.452 Thread 0x000002882ac21930 nmethod 2651 0x000002880f1f4590 code [0x000002880f1f4a20, 0x000002880f1f6858] -Event: 4.452 Thread 0x000002882ac21930 2653 3 java.util.regex.Pattern::next (33 bytes) -Event: 4.453 Thread 0x000002882ac21930 nmethod 2653 0x000002880f1f7410 code [0x000002880f1f75c0, 0x000002880f1f7848] -Event: 4.453 Thread 0x000002882ac21930 2652 3 jdk.internal.org.objectweb.asm.Type::getClassName (172 bytes) -Event: 4.454 Thread 0x000002882ac21930 nmethod 2652 0x000002880f1f7990 code [0x000002880f1f7d40, 0x000002880f1f9228] -Event: 4.454 Thread 0x000002882ac21930 2654 1 java.lang.invoke.DirectMethodHandle$Special::isInvokeSpecial (2 bytes) -Event: 4.454 Thread 0x000002882ac21930 nmethod 2654 0x0000028816354a10 code [0x0000028816354ba0, 0x0000028816354c78] -Event: 227.470 Thread 0x000002882ac21930 2655 3 java.lang.String::hashCode (60 bytes) -Event: 227.471 Thread 0x000002882ac21930 nmethod 2655 0x000002880f1f9990 code [0x000002880f1f9b60, 0x000002880f1f9ed8] - -GC Heap History (8 events): -Event: 1.111 GC heap before -{Heap before GC invocations=0 (full 0): - garbage-first heap total 260096K, used 22528K [0x0000000702c00000, 0x0000000800000000) - region size 2048K, 11 young (22528K), 0 survivors (0K) - Metaspace used 3625K, committed 3776K, reserved 1056768K - class space used 387K, committed 448K, reserved 1048576K -} -Event: 1.115 GC heap after -{Heap after GC invocations=1 (full 0): - garbage-first heap total 260096K, used 7815K [0x0000000702c00000, 0x0000000800000000) - region size 2048K, 2 young (4096K), 2 survivors (4096K) - Metaspace used 3625K, committed 3776K, reserved 1056768K - class space used 387K, committed 448K, reserved 1048576K -} -Event: 2.037 GC heap before -{Heap before GC invocations=1 (full 0): - garbage-first heap total 260096K, used 34439K [0x0000000702c00000, 0x0000000800000000) - region size 2048K, 15 young (30720K), 2 survivors (4096K) - Metaspace used 8709K, committed 8960K, reserved 1064960K - class space used 1039K, committed 1152K, reserved 1048576K -} -Event: 2.041 GC heap after -{Heap after GC invocations=2 (full 0): - garbage-first heap total 260096K, used 9706K [0x0000000702c00000, 0x0000000800000000) - region size 2048K, 1 young (2048K), 1 survivors (2048K) - Metaspace used 8709K, committed 8960K, reserved 1064960K - class space used 1039K, committed 1152K, reserved 1048576K -} -Event: 3.581 GC heap before -{Heap before GC invocations=2 (full 0): - garbage-first heap total 260096K, used 79338K [0x0000000702c00000, 0x0000000800000000) - region size 2048K, 36 young (73728K), 1 survivors (2048K) - Metaspace used 21017K, committed 21248K, reserved 1073152K - class space used 2668K, committed 2752K, reserved 1048576K -} -Event: 3.586 GC heap after -{Heap after GC invocations=3 (full 0): - garbage-first heap total 260096K, used 12335K [0x0000000702c00000, 0x0000000800000000) - region size 2048K, 3 young (6144K), 3 survivors (6144K) - Metaspace used 21017K, committed 21248K, reserved 1073152K - class space used 2668K, committed 2752K, reserved 1048576K -} -Event: 4.246 GC heap before -{Heap before GC invocations=4 (full 0): - garbage-first heap total 55296K, used 38959K [0x0000000702c00000, 0x0000000800000000) - region size 2048K, 16 young (32768K), 3 survivors (6144K) - Metaspace used 25469K, committed 25792K, reserved 1073152K - class space used 3427K, committed 3584K, reserved 1048576K -} -Event: 4.253 GC heap after -{Heap after GC invocations=5 (full 0): - garbage-first heap total 55296K, used 13291K [0x0000000702c00000, 0x0000000800000000) - region size 2048K, 1 young (2048K), 1 survivors (2048K) - Metaspace used 25469K, committed 25792K, reserved 1073152K - class space used 3427K, committed 3584K, reserved 1048576K -} - -Deoptimization events (20 events): -Event: 4.437 Thread 0x00000288059c5080 DEOPT PACKING pc=0x000002880edc6be4 sp=0x000000aca80fa0a0 -Event: 4.437 Thread 0x00000288059c5080 DEOPT UNPACKING pc=0x000002880e73dece sp=0x000000aca80f9558 mode 1 -Event: 4.437 Thread 0x00000288059c5080 DEOPT PACKING pc=0x000002880f179794 sp=0x000000aca80faac0 -Event: 4.437 Thread 0x00000288059c5080 DEOPT UNPACKING pc=0x000002880e73dece sp=0x000000aca80f9f90 mode 1 -Event: 4.446 Thread 0x00000288059c5080 DEOPT PACKING pc=0x000002880edcf224 sp=0x000000aca80fcbf0 -Event: 4.446 Thread 0x00000288059c5080 DEOPT UNPACKING pc=0x000002880e73dece sp=0x000000aca80fc088 mode 1 -Event: 4.446 Thread 0x00000288059c5080 DEOPT PACKING pc=0x000002880edc6be4 sp=0x000000aca80fccc0 -Event: 4.446 Thread 0x00000288059c5080 DEOPT UNPACKING pc=0x000002880e73dece sp=0x000000aca80fc178 mode 1 -Event: 4.446 Thread 0x00000288059c5080 DEOPT PACKING pc=0x000002880ee6d9f4 sp=0x000000aca80fd6e0 -Event: 4.446 Thread 0x00000288059c5080 DEOPT UNPACKING pc=0x000002880e73dece sp=0x000000aca80fcbd0 mode 1 -Event: 4.446 Thread 0x00000288059c5080 DEOPT PACKING pc=0x000002880edcf224 sp=0x000000aca80fcbf0 -Event: 4.446 Thread 0x00000288059c5080 DEOPT UNPACKING pc=0x000002880e73dece sp=0x000000aca80fc088 mode 1 -Event: 4.446 Thread 0x00000288059c5080 DEOPT PACKING pc=0x000002880edc6be4 sp=0x000000aca80fccc0 -Event: 4.446 Thread 0x00000288059c5080 DEOPT UNPACKING pc=0x000002880e73dece sp=0x000000aca80fc178 mode 1 -Event: 4.446 Thread 0x00000288059c5080 DEOPT PACKING pc=0x000002880ee6d9f4 sp=0x000000aca80fd6e0 -Event: 4.446 Thread 0x00000288059c5080 DEOPT UNPACKING pc=0x000002880e73dece sp=0x000000aca80fcbd0 mode 1 -Event: 4.451 Thread 0x00000288059c5080 Uncommon trap: trap_request=0xffffff45 fr.pc=0x00000288161c9e70 relative=0x0000000000000250 -Event: 4.451 Thread 0x00000288059c5080 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00000288161c9e70 method=java.lang.String.isLatin1()Z @ 10 c2 -Event: 4.451 Thread 0x00000288059c5080 DEOPT PACKING pc=0x00000288161c9e70 sp=0x000000aca80fc360 -Event: 4.451 Thread 0x00000288059c5080 DEOPT UNPACKING pc=0x000002880e73d72e sp=0x000000aca80fc290 mode 2 - -Classes unloaded (0 events): -No events - -Classes redefined (2 events): -Event: 68.427 Thread 0x000002882a2c5a10 redefined class name=fr.insee.sugoi.ldap.utils.mapper.UserLdapMapperFromAttributesTest, count=1 -Event: 157.648 Thread 0x000002882a2c5a10 redefined class name=fr.insee.sugoi.ldap.utils.mapper.UserLdapMapperFromAttributesTest, count=2 - -Internal exceptions (20 events): -Event: 3.043 Thread 0x00000288059c5080 Exception (0x000000070fe0b988) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\classfile\systemDictionary.cpp, line 256] -Event: 3.045 Thread 0x00000288059c5080 Exception (0x000000070fe141d8) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\classfile\systemDictionary.cpp, line 256] -Event: 3.129 Thread 0x00000288059c5080 Exception (0x000000070fab6fd8) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\classfile\systemDictionary.cpp, line 256] -Event: 3.130 Thread 0x00000288059c5080 Exception (0x000000070fac1c30) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\classfile\systemDictionary.cpp, line 256] -Event: 3.133 Thread 0x00000288059c5080 Exception (0x000000070fadd7f8) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\classfile\systemDictionary.cpp, line 256] -Event: 3.134 Thread 0x00000288059c5080 Exception (0x000000070fae4aa8) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 790] -Event: 3.144 Thread 0x00000288059c5080 Exception (0x000000070f830c30) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 790] -Event: 3.300 Thread 0x000002882e3b8c40 Exception (0x000000070f0d5318) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 790] -Event: 3.647 Thread 0x000002882e3b8c40 Exception (0x0000000705960fe0) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 790] -Event: 3.649 Thread 0x000002882e3b8c40 Exception (0x000000070596c1d8) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 790] -Event: 3.649 Thread 0x000002882e3b8c40 Exception (0x000000070596f9b8) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 790] -Event: 3.651 Thread 0x000002882e3b8c40 Exception (0x000000070597d8d0) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 790] -Event: 3.651 Thread 0x000002882e3b8c40 Exception (0x0000000705981030) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 857] -Event: 3.668 Thread 0x000002882e3b8c40 Exception (0x0000000705621688) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 790] -Event: 3.705 Thread 0x00000288059c5080 Exception (0x0000000705425828) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\classfile\systemDictionary.cpp, line 256] -Event: 3.706 Thread 0x00000288059c5080 Exception (0x00000007054304d8) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\classfile\systemDictionary.cpp, line 256] -Event: 4.233 Thread 0x00000288059c5080 Exception (0x0000000704370140) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 790] -Event: 4.234 Thread 0x00000288059c5080 Exception (0x0000000704379c88) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 857] -Event: 4.338 Thread 0x00000288059c5080 Exception (0x000000070e105040) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\classfile\systemDictionary.cpp, line 256] -Event: 4.447 Thread 0x00000288059c5080 Exception (0x000000070dd921c8) -thrown [e:\jenkins\tmp\workspace\build\src\src\hotspot\share\interpreter\linkResolver.cpp, line 857] - -Events (20 events): -Event: 160.524 Executing VM operation: get/set locals done -Event: 160.545 Executing VM operation: get/set locals -Event: 160.545 Executing VM operation: get/set locals done -Event: 160.567 Executing VM operation: get/set locals -Event: 160.567 Executing VM operation: get/set locals done -Event: 160.633 Executing VM operation: get/set locals -Event: 160.633 Executing VM operation: get/set locals done -Event: 160.655 Executing VM operation: get/set locals -Event: 160.655 Executing VM operation: get/set locals done -Event: 160.676 Executing VM operation: get/set locals -Event: 160.676 Executing VM operation: get/set locals done -Event: 160.785 Executing VM operation: get/set locals -Event: 160.785 Executing VM operation: get/set locals done -Event: 200.433 Executing VM operation: ChangeBreakpoints -Event: 200.433 Executing VM operation: ChangeBreakpoints done -Event: 202.657 Executing VM operation: ChangeBreakpoints -Event: 202.657 Executing VM operation: ChangeBreakpoints done -Event: 227.470 loading class com/intellij/rt/debugger/BatchEvaluatorServer -Event: 227.470 loading class com/intellij/rt/debugger/BatchEvaluatorServer done -Event: 231.980 Executing VM operation: get/set locals - - -Dynamic libraries: -0x00007ff7111e0000 - 0x00007ff7111ee000 C:\INSEE\jdk-16.0.2+7\bin\java.exe -0x00007ffec1b90000 - 0x00007ffec1d88000 C:\WINDOWS\SYSTEM32\ntdll.dll -0x00007ffebfe80000 - 0x00007ffebff3d000 C:\WINDOWS\System32\KERNEL32.DLL -0x00007ffebf4e0000 - 0x00007ffebf7ae000 C:\WINDOWS\System32\KERNELBASE.dll -0x00007ffebf7e0000 - 0x00007ffebf8e0000 C:\WINDOWS\System32\ucrtbase.dll -0x00007ffeb9700000 - 0x00007ffeb9718000 C:\INSEE\jdk-16.0.2+7\bin\jli.dll -0x00007ffea9e80000 - 0x00007ffea9e99000 C:\INSEE\jdk-16.0.2+7\bin\VCRUNTIME140.dll -0x00007ffebfbf0000 - 0x00007ffebfd90000 C:\WINDOWS\System32\USER32.dll -0x00007ffebfbc0000 - 0x00007ffebfbe2000 C:\WINDOWS\System32\win32u.dll -0x00007ffea07f0000 - 0x00007ffea0a8a000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_60b5254171f9507e\COMCTL32.dll -0x00007ffebfd90000 - 0x00007ffebfdba000 C:\WINDOWS\System32\GDI32.dll -0x00007ffebfdc0000 - 0x00007ffebfe5e000 C:\WINDOWS\System32\msvcrt.dll -0x00007ffebfa40000 - 0x00007ffebfb4b000 C:\WINDOWS\System32\gdi32full.dll -0x00007ffebf440000 - 0x00007ffebf4dd000 C:\WINDOWS\System32\msvcp_win.dll -0x00007ffebffa0000 - 0x00007ffebffd0000 C:\WINDOWS\System32\IMM32.DLL -0x00007ffe8d2c0000 - 0x00007ffe8d364000 C:\Program Files\McAfee\Endpoint Security\Threat Prevention\Ips\EpMPApi.dll -0x00007ffec1810000 - 0x00007ffec1935000 C:\WINDOWS\System32\RPCRT4.dll -0x00007ffec06a0000 - 0x00007ffec074e000 C:\WINDOWS\System32\ADVAPI32.dll -0x00007ffec0590000 - 0x00007ffec062c000 C:\WINDOWS\System32\sechost.dll -0x00007ffebfb50000 - 0x00007ffebfbb7000 C:\WINDOWS\System32\WINTRUST.dll -0x00007ffebf8e0000 - 0x00007ffebfa36000 C:\WINDOWS\System32\CRYPT32.dll -0x00007ffebeea0000 - 0x00007ffebeeb2000 C:\WINDOWS\SYSTEM32\MSASN1.dll -0x0000000050ff0000 - 0x0000000050ffc000 C:\Program Files\McAfee\Endpoint Security\Threat Prevention\Ips\EpMPThe.dll -0x00007ffe903a0000 - 0x00007ffe903f8000 C:\Program Files\McAfee\Endpoint Security\Threat Prevention\Ips\HIPHandlers64.dll -0x00007ffec0df0000 - 0x00007ffec0e45000 C:\WINDOWS\System32\SHLWAPI.dll -0x00007ffebd010000 - 0x00007ffebd1f4000 C:\WINDOWS\SYSTEM32\dbghelp.dll -0x00007ffeb8400000 - 0x00007ffeb840c000 C:\INSEE\jdk-16.0.2+7\bin\vcruntime140_1.dll -0x00007ffe8d6c0000 - 0x00007ffe8d751000 C:\INSEE\jdk-16.0.2+7\bin\msvcp140.dll -0x00007ffe59460000 - 0x00007ffe5a097000 C:\INSEE\jdk-16.0.2+7\bin\server\jvm.dll -0x00007ffebfe60000 - 0x00007ffebfe68000 C:\WINDOWS\System32\PSAPI.DLL -0x00007ffeb7240000 - 0x00007ffeb724a000 C:\WINDOWS\SYSTEM32\VERSION.dll -0x00007ffeac7f0000 - 0x00007ffeac817000 C:\WINDOWS\SYSTEM32\WINMM.dll -0x00007ffea7b50000 - 0x00007ffea7b59000 C:\WINDOWS\SYSTEM32\WSOCK32.dll -0x00007ffec0630000 - 0x00007ffec069b000 C:\WINDOWS\System32\WS2_32.dll -0x00007ffebdb40000 - 0x00007ffebdb52000 C:\WINDOWS\SYSTEM32\kernel.appcore.dll -0x00007ffe93510000 - 0x00007ffe9351a000 C:\INSEE\jdk-16.0.2+7\bin\jimage.dll -0x00007ffeb4fc0000 - 0x00007ffeb4fec000 C:\WINDOWS\SYSTEM32\dbgcore.DLL -0x00007ffebf3b0000 - 0x00007ffebf432000 C:\WINDOWS\System32\bcryptPrimitives.dll -0x00007ffea5a70000 - 0x00007ffea5aab000 C:\INSEE\jdk-16.0.2+7\bin\jdwp.dll -0x00007ffea9f50000 - 0x00007ffea9f5e000 C:\INSEE\jdk-16.0.2+7\bin\instrument.dll -0x00007ffe8bab0000 - 0x00007ffe8bad5000 C:\INSEE\jdk-16.0.2+7\bin\java.dll -0x00007ffe8b990000 - 0x00007ffe8b9a8000 C:\INSEE\jdk-16.0.2+7\bin\zip.dll -0x00007ffec0f90000 - 0x00007ffec16d4000 C:\WINDOWS\System32\SHELL32.dll -0x00007ffebd390000 - 0x00007ffebdb24000 C:\WINDOWS\SYSTEM32\windows.storage.dll -0x00007ffebffd0000 - 0x00007ffec0324000 C:\WINDOWS\System32\combase.dll -0x00007ffebed10000 - 0x00007ffebed40000 C:\WINDOWS\SYSTEM32\Wldp.dll -0x00007ffec0ee0000 - 0x00007ffec0f8d000 C:\WINDOWS\System32\SHCORE.dll -0x00007ffebf1f0000 - 0x00007ffebf20f000 C:\WINDOWS\SYSTEM32\profapi.dll -0x00007ffea5d10000 - 0x00007ffea5d1c000 C:\INSEE\jdk-16.0.2+7\bin\dt_socket.dll -0x00007ffebe710000 - 0x00007ffebe74b000 C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL -0x00007ffebea70000 - 0x00007ffebeada000 C:\WINDOWS\system32\mswsock.dll -0x00007ffe8cc80000 - 0x00007ffe8cc99000 C:\INSEE\jdk-16.0.2+7\bin\net.dll -0x00007ffeba040000 - 0x00007ffeba14a000 C:\WINDOWS\SYSTEM32\WINHTTP.dll -0x00007ffe8ca90000 - 0x00007ffe8caa3000 C:\INSEE\jdk-16.0.2+7\bin\nio.dll -0x00007ffe90530000 - 0x00007ffe90540000 C:\INSEE\jdk-16.0.2+7\bin\verify.dll -0x00007ffeb94c0000 - 0x00007ffeb94c9000 C:\INSEE\jdk-16.0.2+7\bin\management.dll -0x00007ffea9f60000 - 0x00007ffea9f6b000 C:\INSEE\jdk-16.0.2+7\bin\management_ext.dll -0x00007ffeaf430000 - 0x00007ffeaf447000 C:\WINDOWS\system32\napinsp.dll -0x00007ffeaf3e0000 - 0x00007ffeaf3fb000 C:\WINDOWS\system32\pnrpnsp.dll -0x00007ffeb9fb0000 - 0x00007ffeb9fc5000 C:\WINDOWS\system32\wshbth.dll -0x00007ffeba020000 - 0x00007ffeba03d000 C:\WINDOWS\system32\NLAapi.dll -0x00007ffebe750000 - 0x00007ffebe81b000 C:\WINDOWS\SYSTEM32\DNSAPI.dll -0x00007ffebfe70000 - 0x00007ffebfe78000 C:\WINDOWS\System32\NSI.dll -0x00007ffeaf480000 - 0x00007ffeaf492000 C:\WINDOWS\System32\winrnr.dll -0x00007ffeb6c30000 - 0x00007ffeb6c3a000 C:\Windows\System32\rasadhlp.dll -0x00007ffeba150000 - 0x00007ffeba1d0000 C:\WINDOWS\System32\fwpuclnt.dll -0x00007ffebf7b0000 - 0x00007ffebf7d7000 C:\WINDOWS\System32\bcrypt.dll - -dbghelp: loaded successfully - version: 4.0.5 - missing functions: none -symbol engine: initialized successfully - sym options: 0x614 - pdb path: .;C:\INSEE\jdk-16.0.2+7\bin;C:\WINDOWS\SYSTEM32;C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_60b5254171f9507e;C:\Program Files\McAfee\Endpoint Security\Threat Prevention\Ips;C:\INSEE\jdk-16.0.2+7\bin\server - -VM Arguments: -jvm_args: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:56005,suspend=y,server=n -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:C:\Users\RMBH0V\AppData\Local\JetBrains\IntelliJIdea2022.1\captureAgent\debugger-agent.jar=file:/C:/Users/RMBH0V/AppData/Local/Temp/capture.props -Dfile.encoding=UTF-8 -java_command: com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit5 @w@C:\Users\RMBH0V\AppData\Local\Temp\idea_working_dirs_junit.tmp @C:\Users\RMBH0V\AppData\Local\Temp\idea_junit.tmp -java_class_path (initial): C:\Users\RMBH0V\.m2\repository\org\junit\platform\junit-platform-launcher\1.8.2\junit-platform-launcher-1.8.2.jar;C:\Users\RMBH0V\AppData\Local\JetBrains\IntelliJ IDEA 2022.1.3\lib\idea_rt.jar;C:\Users\RMBH0V\AppData\Local\JetBrains\IntelliJ IDEA 2022.1.3\plugins\junit\lib\junit5-rt.jar;C:\Users\RMBH0V\AppData\Local\JetBrains\IntelliJ IDEA 2022.1.3\plugins\junit\lib\junit-rt.jar;C:\INSEE\dev\sugoi-api\sugoi-api-ldap-utils\target\test-classes;C:\INSEE\dev\sugoi-api\sugoi-api-ldap-utils\target\classes;C:\Users\RMBH0V\.m2\repository\com\unboundid\unboundid-ldapsdk\6.0.5\unboundid-ldapsdk-6.0.5.jar;C:\INSEE\dev\sugoi-api\sugoi-api-core\target\classes;C:\Users\RMBH0V\.m2\repository\org\springframework\boot\spring-boot-starter-cache\2.7.2\spring-boot-starter-cache-2.7.2.jar;C:\Users\RMBH0V\.m2\repository\org\springframework\spring-context-support\5.3.22\spring-context-support-5.3.22.jar;C:\Users\RMBH0V\.m2\repository\org\springframework\spring-beans\5.3.22\spring-beans-5.3.22.jar;C:\Users\RMBH0V\.m2\repository\org\springframework\spring-context\5.3.22\spring-context-5.3.22.jar;C:\Users\RMBH0V\.m2\repository\org\springframework\spring-expression\5.3.22\spring-expression-5.3.22.jar;C:\Users\RMBH0V\.m2\repository\org\apache\commons\commons-lang3\3.12.0\commons-lang3-3.12.0.jar;C:\INSEE\dev\sugoi-api\sugoi-api-model\target\classes;C:\Users\RMBH0V\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.13.3\jackson-databind-2.13.3.jar;C:\Users\RMBH0V\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.13.3\jackson-annotations-2.13.3.jar;C:\Users\RMBH0V\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.13.3\jackson-core-2.13.3.jar;C:\Users\RMBH0V\.m2\repository\net\sf\ehcache\ehcache\2.10.9.2\ehcache-2.10.9.2.jar;C:\Users\RMBH0V\.m2\repository\org\slf4j\slf4j-api\1.7.36\slf4j-api-1.7.36.jar;C:\Users\RMBH0V\.m2\repository\org\passay\passay\1.6.2\passay-1.6.2.jar;C:\Users\RMBH0V\.m2\repository\commons-lang\commons-lang\2.6\comm -Launcher Type: SUN_STANDARD - -[Global flags] - intx CICompilerCount = 4 {product} {ergonomic} - uint ConcGCThreads = 2 {product} {ergonomic} - uint G1ConcRefinementThreads = 8 {product} {ergonomic} - size_t G1HeapRegionSize = 2097152 {product} {ergonomic} - uintx GCDrainStackTargetSize = 64 {product} {ergonomic} - size_t InitialHeapSize = 266338304 {product} {ergonomic} - size_t MarkStackSize = 4194304 {product} {ergonomic} - size_t MaxHeapSize = 4248829952 {product} {ergonomic} - size_t MaxNewSize = 2548039680 {product} {ergonomic} - size_t MinHeapDeltaBytes = 2097152 {product} {ergonomic} - size_t MinHeapSize = 8388608 {product} {ergonomic} - uintx NonNMethodCodeHeapSize = 5839372 {pd product} {ergonomic} - uintx NonProfiledCodeHeapSize = 122909434 {pd product} {ergonomic} - uintx ProfiledCodeHeapSize = 122909434 {pd product} {ergonomic} - uintx ReservedCodeCacheSize = 251658240 {pd product} {ergonomic} - bool SegmentedCodeCache = true {product} {ergonomic} - size_t SoftMaxHeapSize = 4248829952 {manageable} {ergonomic} - bool UseCompressedClassPointers = true {product lp64_product} {ergonomic} - bool UseCompressedOops = true {product lp64_product} {ergonomic} - bool UseG1GC = true {product} {ergonomic} - bool UseLargePagesIndividualAllocation = false {pd product} {ergonomic} - -Logging: -Log output configuration: - #0: stdout all=warning uptime,level,tags - #1: stderr all=off uptime,level,tags - -Environment Variables: -JAVA_HOME=C:\INSEE\jdk-11.0.16+8 -PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\RMBH0V\AppData\Local\Microsoft\WindowsApps;C:\Users\RMBH0V\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\RMBH0V\AppData\Local\Programs\Git\cmd;C:\INSEE\node\node-v16.13.1-win-x64;C:\INSEE\apache-maven-3.8.4\bin;C:\INSEE\node\node_modules\yarn\bin;C:\Users\RMBH0V\IntelliJ IDEA 2021.3.1\bin;C:\\INSEE\\Kube;C:\\INSEE\\home\\.vs-kubernetes\\tools\\helm\\windows-amd64\\helm.exe;C:\\INSEE\\home\\.vs-kubernetes\\tools\\kubectl\\kubectl.exe;C:\\INSEE\\home\\.vs-kubernetes\\tools\\minikube\\windows-amd64\\minikube.exe;C:\INSEE\Cmder\bin;C:\INSEE\pg_clients\pgsql\bin;C:\ProgramData\RMBH0V\gitkraken\bin;C:\Users\RMBH0V\AppData\Local\JetBrains\IntelliJ IDEA 2022.1.3\bin;C:\Users\RMBH0V\AppData\Local\gitkraken\bin;C:\INSEE\jdk-11.0.16+8\bin; -USERNAME=RMBH0V -OS=Windows_NT -PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 142 Stepping 12, GenuineIntel - - - ---------------- S Y S T E M --------------- - -OS: - Windows 10 , 64 bit Build 19041 (10.0.19041.1806) -OS uptime: 20 days 7:39 hours - -CPU: total 8 (initial active 8) (4 cores per cpu, 2 threads per core) family 6 model 142 stepping 12 microcode 0xf0, cx8, cmov, fxsr, ht, mmx, 3dnowpref, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, lzcnt, tsc, tscinvbit, avx, avx2, aes, erms, clmul, bmi1, bmi2, adx, fma, vzeroupper, clflush, clflushopt - -Memory: 4k page, system-wide physical 16204M (1634M free) -TotalPageFile size 32501M (AvailPageFile size 4563M) -current process WorkingSet (physical memory assigned to process): 134M, peak: 214M -current process commit charge ("private bytes"): 189M, peak: 438M - -vm_info: OpenJDK 64-Bit Server VM (16.0.2+7) for windows-amd64 JRE (16.0.2+7), built on Jul 22 2021 15:19:09 by "" with MS VC++ 16.7 (VS2019) - -END. diff --git a/sugoi-api-ldap-utils/src/test/java/fr/insee/sugoi/ldap/utils/mapper/UserLdapMapperFromAttributesTest.java b/sugoi-api-ldap-utils/src/test/java/fr/insee/sugoi/ldap/utils/mapper/UserLdapMapperFromAttributesTest.java index b6950388..e5b7b5b9 100644 --- a/sugoi-api-ldap-utils/src/test/java/fr/insee/sugoi/ldap/utils/mapper/UserLdapMapperFromAttributesTest.java +++ b/sugoi-api-ldap-utils/src/test/java/fr/insee/sugoi/ldap/utils/mapper/UserLdapMapperFromAttributesTest.java @@ -61,11 +61,8 @@ public void getSimpleUserFromAttributes() { Attribute firstNameAttribute = new Attribute("givenName", "Tata"); Attribute mailAttribute = new Attribute("mail", "toto@tata.insee.fr"); Attribute usernameAttribute = new Attribute("uid", "totoid"); - Collection attributes = new ArrayList<>(); - attributes.add(lastNameAttribute); - attributes.add(firstNameAttribute); - attributes.add(mailAttribute); - attributes.add(usernameAttribute); + Collection attributes = + List.of(lastNameAttribute, firstNameAttribute, mailAttribute, usernameAttribute); User mappedUser = userLdapMapper.mapFromAttributes(attributes); assertThat("Should have a username", mappedUser.getUsername(), is("totoid")); @@ -81,11 +78,8 @@ public void getUserAttributesFromAttributes() { Attribute personalTitleAttribute = new Attribute("personalTitle", "Camarade"); Attribute descriptionAttribute = new Attribute("description", "ma description"); Attribute telAttribute = new Attribute("telephoneNumber", "012345678"); - Collection attributes = new ArrayList<>(); - attributes.add(commonNameAttribute); - attributes.add(personalTitleAttribute); - attributes.add(descriptionAttribute); - attributes.add(telAttribute); + Collection attributes = + List.of(commonNameAttribute, personalTitleAttribute, descriptionAttribute, telAttribute); User mappedUser = userLdapMapper.mapFromAttributes(attributes); assertThat("Should hava a cn", mappedUser.getAttributes().get("common_name"), is("Toto Tata")); @@ -111,10 +105,8 @@ public void getUserHabilitationsFromAttributes() { Attribute habilitationWithoutPropAttribute = new Attribute("inseeGroupeDefaut", "role_application2"); Attribute malformedHabilitation = new Attribute("inseeGroupeDefaut", "toto"); - Collection attributes = new ArrayList<>(); - attributes.add(habilitationAttribute1); - attributes.add(habilitationWithoutPropAttribute); - attributes.add(malformedHabilitation); + Collection attributes = + List.of(habilitationAttribute1, habilitationWithoutPropAttribute, malformedHabilitation); User mappedUser = userLdapMapper.mapFromAttributes(attributes); assertThat( @@ -140,8 +132,7 @@ public void getUserOrganizationFromAttributes() { Attribute organizationAttribute = new Attribute( "inseeOrganisationDN", "uid=monOrga,ou=organisations,ou=clients_domaine1,o=insee,c=fr"); - Collection attributes = new ArrayList<>(); - attributes.add(organizationAttribute); + Collection attributes = List.of(organizationAttribute); User mappedUser = userLdapMapper.mapFromAttributes(attributes); assertThat( @@ -153,8 +144,7 @@ public void getUserAddressFromAttributes() { Attribute addressAttribute = new Attribute("inseeAdressePostaleDN", "l=generatedBefore,ou=address,o=insee,c=fr"); - Collection attributes = new ArrayList<>(); - attributes.add(addressAttribute); + Collection attributes = List.of(addressAttribute); User mappedUser = userLdapMapper.mapFromAttributes(attributes); assertThat("Should have address id", mappedUser.getAddress().getId(), is("generatedBefore")); @@ -174,10 +164,10 @@ public void getUserGroupFromAttributes() { User mappedUser = userLdapMapper.mapFromAttributes(attributes); assertThat( - "monappli App should have admin name", + "User should have admin group", mappedUser.getGroups().stream().anyMatch(group -> group.getName().equals("admin"))); assertThat( - "Reader group should have monappli2 app name", + "User should have at least a group of monappli2 app", mappedUser.getGroups().stream().anyMatch(group -> group.getAppName().equals("monappli2"))); } @@ -193,13 +183,13 @@ public void getUserManagerGroupFromAttribute() { User mappedUser = userLdapMapper.mapFromAttributes(attributes); assertThat( - "Manager group should have group ASI_toto name", + "User should have ASI_toto group", mappedUser.getGroups().stream().anyMatch(group -> group.getName().equals("ASI_toto"))); assertThat( - "Admin group should display admin name", + "User should have admin name", mappedUser.getGroups().stream().anyMatch(group -> group.getName().equals("admin"))); assertThat( - "Manager group should have toto app name", + "User should have toto application name", mappedUser.getGroups().stream().anyMatch(group -> group.getAppName().equals("toto"))); } @@ -208,9 +198,7 @@ public void getInseeRolesApplicatifsFromAttributes() { Attribute inseeRoleAppAttribute1 = new Attribute("inseeRoleApplicatif", "toto"); Attribute inseeRoleAppAttribute2 = new Attribute("inseeRoleApplicatif", "tata"); - Collection attributes = new ArrayList<>(); - attributes.add(inseeRoleAppAttribute1); - attributes.add(inseeRoleAppAttribute2); + Collection attributes = List.of(inseeRoleAppAttribute1, inseeRoleAppAttribute2); User mappedUser = userLdapMapper.mapFromAttributes(attributes); @SuppressWarnings("unchecked") List inseeRoleApplicatifs = diff --git a/sugoi-api-ldap-utils/src/test/java/fr/insee/sugoi/ldap/utils/mapper/UserLdapMapperFromObjectTest.java b/sugoi-api-ldap-utils/src/test/java/fr/insee/sugoi/ldap/utils/mapper/UserLdapMapperFromObjectTest.java index 1501257d..6af90256 100644 --- a/sugoi-api-ldap-utils/src/test/java/fr/insee/sugoi/ldap/utils/mapper/UserLdapMapperFromObjectTest.java +++ b/sugoi-api-ldap-utils/src/test/java/fr/insee/sugoi/ldap/utils/mapper/UserLdapMapperFromObjectTest.java @@ -158,9 +158,7 @@ public void getUserHabilitationsAttributeFromJavaObject() { Habilitation habilitation1 = new Habilitation("property_role_application"); Habilitation habilitation2 = new Habilitation("property_role_application2"); - List habilitations = new ArrayList<>(); - habilitations.add(habilitation1); - habilitations.add(habilitation2); + List habilitations = List.of(habilitation1, habilitation2); user.setHabilitations(habilitations); List mappedAttributes = userLdapMapper.mapToAttributesForCreation(user);