<div dir="ltr">Some playing shows that the following definition based on ArchetypeType doesn't work <div><br><div> <roleCatalog><br> <collection></div><div> <identifier>workstationAdminRoles</identifier><br></div><div> <default>true</default><br> <collectionRef oid="304cbdd8-1386-401d-8f60-b5c935f71570" relation="org:default" type="c:ArchetypeType"/><br> </collection><br> </roleCatalog><br><br>because of error:</div><div><br></div><div>Caused by: java.lang.ClassCastException: class com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypeType cannot be cast to class com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectCollectionType (com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypeType and com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectCollectionType are in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @5e955596)<br></div><div><br></div><div>This occurs on Midpoint 4.8.3</div><div><br></div><div>If use objectCollection proxy the definition should look like this<br><br> <roleCatalog><br> <collection><br> <identifier>workstationAdminRoles</identifier><br> <collectionRef oid="2613a987-8911-45b7-ae6d-09a93c183f8c" relation="org:default" type="c:ObjectCollectionType"/><br> </collection><br></div><div> <r/oleCatalog><br></div><div><br></div><div>identifier must be set to something<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 16 Jul 2024 at 13:51, Yakov Revyakin <<a href="mailto:yrevyakin@gmail.com">yrevyakin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<div>I'm a bit confused because I'm unsuccessful in adding custom collections to roleCatalog in SystemConfiguration. </div><div>For example,</div><div>I'm replacing default collection<br><br> <roleCatalog><br> <collection><br> <identifier>allRoles</identifier><br> <default>true</default><br> <collectionIdentifier>allRoles</collectionIdentifier><br> </collection><br> </roleCatalog><br></div><div><br></div><div>with custom<br><br> <roleCatalog><br> <collection></div><div> <default>true</default><br> <collectionRef oid="304cbdd8-1386-401d-8f60-b5c935f71570" relation="org:default" type="c:ArchetypeType"/><br> </collection><br> </roleCatalog><br></div><div><br></div><div>This results in an empty collection list in the role catalog UI.<br></div><div>Any other combinations like ref to custom collection which in its turn includes filter by archetype have the same "income". </div><div>What is wrong?</div><div><br></div><div>Thanks,</div><div>Yakov</div><div><br></div></div>
</blockquote></div>