Pour le 1., on a contourné en utilisant une liste fixe donc ça ne nous pose plus de problème.
Par curiosité j’ai continué l’analyse, dans Network je vois qu’au premier appel j’ai un ObjectFieldList vide dans la Réponse, et au deuxième appel j’ai bien mes valeurs.
Pourtant initAction est appelé même dans le premier appel.
> 2024-05-29 14:46:11,670|SIMPLICITE|DEBUG||http://simplicite-trn-5768d8f76f-q7rfl:8080||DEBUG|system|com.simplicite.webapp.servlets.ui.JSONServlet|service||Event: Scheme : [https]
> Port : [443]
> Hostname : [ear-trn.k8s-stage.grouperci.com]
> Context path : []
> Request URI : [/ui/json/obj]
> Request URL : [https://ear-trn.k8s-stage.grouperci.com/ui/json/obj]
> Query string : [action=createApp&object=RciPRA&inst=home_ajax_RciPRA_3&_init=true&_=5_3_38_20240529144551&_ajaxkey=AdLKdsyVKB8NMItWgtSr&_tabid=iFsdw]
> Full URL : [https://ear-trn.k8s-stage.grouperci.com/ui/json/obj?action=createApp&object=RciPRA&inst=home_ajax_RciPRA_3&_init=true&_=5_3_38_20240529144551&_ajaxkey=AdLKdsyVKB8NMItWgtSr&_tabid=iFsdw]
> Base URL : [https://ear-trn.k8s-stage.grouperci.com]
> Method : [POST]
> Request encoding : [null]
> Request content type : [multipart/form-data; boundary=----WebKitFormBoundaryGsPPUQAvMxj2RnIE]
> Request content length : [1905]
> Remote address : [10.42.217.169]
> Remote host : [10.42.217.169]
> Authentication type : [null]
> User login : [designer]
> Session : [34B0C935C0AFB387504B1C41EDD8E8EF]
> Cookies :
> rxVisitor = [1712839521761BPI6IS6M2JDCVKQH65DM4H80DTGR5RFM]
> dtCookie = [v_4_srv_51_sn_939AE447C2B7591F3E96F7902C02481D_perc_100000_ol_0_mul_1_app-3Aea7c4b59f27d43eb_1_app-3Ab75294b74de25c6d_1_app-3A882521fb28e70aa2_1_rcs-3Acss_0]
> dtSa = [-]
> rxvt = [1716909275923|1716907475671]
> dtPC = [51$307475647_802h1vTGPHAGLGFRPLHUHJLAREKKAFRERCCUVB-0e0]
> JSESSIONID = [34B0C935C0AFB387504B1C41EDD8E8EF]
> Headers :
> accept = [*/*]
> accept-encoding = [gzip, deflate, br, zstd]
> accept-language = [en,fr;q=0.9,fr-FR;q=0.8,en-US;q=0.7]
> connection = [close]
> content-length = [1905]
> content-type = [multipart/form-data; boundary=----WebKitFormBoundaryGsPPUQAvMxj2RnIE]
> cookie = [rxVisitor=1712839521761BPI6IS6M2JDCVKQH65DM4H80DTGR5RFM; dtCookie=v_4_srv_51_sn_939AE447C2B7591F3E96F7902C02481D_perc_100000_ol_0_mul_1_app-3Aea7c4b59f27d43eb_1_app-3Ab75294b74de25c6d_1_app-3A882521fb28e70aa2_1_rcs-3Acss_0; dtSa=-; rxvt=1716909275923|1716907475671; dtPC=51$307475647_802h1vTGPHAGLGFRPLHUHJLAREKKAFRERCCUVB-0e0; JSESSIONID=34B0C935C0AFB387504B1C41EDD8E8EF]
> host = [ear-trn.k8s-stage.grouperci.com]
> origin = [https://ear-trn.k8s-stage.grouperci.com]
> referer = [https://ear-trn.k8s-stage.grouperci.com/ui]
> sec-ch-ua = ["Google Chrome";v="125", "Chromium";v="125", "Not.A/Brand";v="24"]
> sec-ch-ua-mobile = [?0]
> sec-ch-ua-platform = ["Windows"]
> sec-fetch-dest = [empty]
> sec-fetch-mode = [cors]
> sec-fetch-site = [same-origin]
> user-agent = [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36]
> x-forwarded-for = [10.253.85.24]
> x-forwarded-host = [ear-trn.k8s-stage.grouperci.com]
> x-forwarded-port = [443]
> x-forwarded-proto = [https]
> x-real-ip = [10.253.85.24]
> x-requested-with = [XMLHttpRequest]
> Parameters :
> _[0] = [5_3_38_20240529144551]
> _ajaxkey[0] = [AdLKdsyVKB8NMItWgtSr]
> _init[0] = [true]
> _tabid[0] = [iFsdw]
> action[0] = [createApp]
> inst[0] = [home_ajax_RciPRA_3]
> object[0] = [RciPRA]
>
> 2024-05-29 14:46:11,670|SIMPLICITE|DEBUG||http://simplicite-trn-5768d8f76f-q7rfl:8080||DEBUG|system|com.simplicite.webapp.tools.ServletTool|setHTTPHeaders||Event: [REQUEST] method POST on /ui/json/obj from 10.253.85.24 with session 34B0C935C0AFB387504B1C41EDD8E8EF, [RESPONSE] MIME type: application/json; charset=UTF-8 max age: 0 seconds
> 2024-05-29 14:46:11,671|SIMPLICITE|DEBUG||http://simplicite-trn-5768d8f76f-q7rfl:8080||DEBUG|designer|com.simplicite.util.engine.CoreCache|instantiateObject||Event: Instanciated implementation com.simplicite.objects.RCIB.RciPRA for object RciPRA
> 2024-05-29 14:46:11,673|SIMPLICITE|DEBUG||http://simplicite-trn-5768d8f76f-q7rfl:8080||DCOREDB001|system|com.simplicite.util.engine.GrantManager|query||SQL query: select d.dbd_name, d.dbd_path, d.dbd_size, d.dbd_vers, d.dbd_mime, d.dbd_resp_id, d.dbd_index_id, o.obj_name, f.fld_name, d.dbd_row_id, d.updated_dt from m_document d left outer join m_object o on (d.dbd_object_id=o.row_id) left outer join m_field f on (d.dbd_field_id=f.row_id) where d.row_id=178470
> 2024-05-29 14:46:11,675|SIMPLICITE|DEBUG||http://simplicite-trn-5768d8f76f-q7rfl:8080||DCOREDB001|system|com.simplicite.util.engine.GrantManager|query||SQL query: select din_name from m_docindex where row_id=7
> 2024-05-29 14:46:11,676|SIMPLICITE|DEBUG||http://simplicite-trn-5768d8f76f-q7rfl:8080||DEBUG|designer|com.simplicite.util.engine.CoreCache|instantiateObject||Event: Instanciated implementation com.simplicite.objects.RCIB.RciSubsidiary for object RciSubsidiary
> 2024-05-29 14:46:11,679|SIMPLICITE|DEBUG||http://simplicite-trn-5768d8f76f-q7rfl:8080||DCOREDB001|system|com.simplicite.util.engine.GrantManager|query||SQL query: select d.dbd_name, d.dbd_path, d.dbd_size, d.dbd_vers, d.dbd_mime, d.dbd_resp_id, d.dbd_index_id, o.obj_name, f.fld_name, d.dbd_row_id, d.updated_dt from m_document d left outer join m_object o on (d.dbd_object_id=o.row_id) left outer join m_field f on (d.dbd_field_id=f.row_id) where d.row_id=177149
> 2024-05-29 14:46:11,681|SIMPLICITE|DEBUG||http://simplicite-trn-5768d8f76f-q7rfl:8080||DCOREDB001|system|com.simplicite.util.engine.GrantManager|query||SQL query: select din_name from m_docindex where row_id=7
> 2024-05-29 14:46:11,682|SIMPLICITE|DEBUG||http://simplicite-trn-5768d8f76f-q7rfl:8080||DCOREDB001|system|com.simplicite.util.engine.ObjectManager|query||SQL query: jdbc/simplicite: select t.row_id, t.rci_sub_headcount, t.rci_sub_name, t.rci_sub_description, t.rci_sub_majortechnologies, t.rci_sub_comments, t.rci_sub_cioname, t.rci_sub_cou_id, t_rciSubCouId.cty_code2, t_rciSubCouId.cty_name, t_rciSubCouId.iso_cty_ctygrp_id, t_isoCtyCtygrpId.iso_ctygrp_code, t.rci_sub_flag, t.rci_sub_bce_dataflows_model_id, t_rciSubBceDataflowsModelId.mod_name, t.rci_sub_org_dataflows_model_id, t_rciSubOrgDataflowsModelId.mod_name, t.rci_sub_fct_dataflows_model_id, t_rciSubFctDataflowsModelId.mod_name, t.rci_sub_scope, t.rci_field_is_archived, t.created_dt, t.created_by, t.updated_dt, t.updated_by from rci_subsidiary t left outer join iso_country t_rciSubCouId on (t.rci_sub_cou_id=t_rciSubCouId.row_id) left outer join iso_country_grouping t_isoCtyCtygrpId on (t_rciSubCouId.iso_cty_ctygrp_id=t_isoCtyCtygrpId.row_id) left outer join m_model t_rciSubBceDataflowsModelId on (t.rci_sub_bce_dataflows_model_id=t_rciSubBceDataflowsModelId.row_id) left outer join m_model t_rciSubOrgDataflowsModelId on (t.rci_sub_org_dataflows_model_id=t_rciSubOrgDataflowsModelId.row_id) left outer join m_model t_rciSubFctDataflowsModelId on (t.rci_sub_fct_dataflows_model_id=t_rciSubFctDataflowsModelId.row_id) order by t.rci_sub_scope asc, t.row_id asc
> 2024-05-29 14:46:11,686|SIMPLICITE|INFO||http://simplicite-trn-5768d8f76f-q7rfl:8080||INFO|designer|com.simplicite.objects.RCIB.RciPRA|EFE initaction : ||Event: 0
> 2024-05-29 14:46:11,686|SIMPLICITE|INFO||http://simplicite-trn-5768d8f76f-q7rfl:8080||INFO|designer|com.simplicite.objects.RCIB.RciPRA|EFE initaction : ||Event: {"name":"RCICOUNTRIES","items":[]}
> 2024-05-29 14:46:11,687|SIMPLICITE|INFO||http://simplicite-trn-5768d8f76f-q7rfl:8080||INFO|designer|com.simplicite.objects.RCIB.RciPRA|EFE initaction2 : ||Event: 69
> 2024-05-29 14:46:11,687|SIMPLICITE|INFO||http://simplicite-trn-5768d8f76f-q7rfl:8080||INFO|designer|com.simplicite.objects.RCIB.RciPRA|EFE initaction2 : ||Event: {"name":"RCICOUNTRIES","items":[{"code":"58","readonly":false,"value":"AE","enabled":true},{"code":"25","readonly":false,"value":"AM","enabled":true},{"code":"2","readonly":false,"value":"AR","enabled":true},{"code":"3","readonly":false,"value":"AT","enabled":true},{"code":"26","readonly":false,"value":"AU","enabled":true},{"code":"27","readonly":false,"value":"AZ","enabled":true},{"code":"4","readonly":false,"value":"BE","enabled":true},{"code":"28","readonly":false,"value":"BG","enabled":true},{"code":"53","readonly":false,"value":"BH","enabled":true},{"code":"65","readonly":false,"value":"BL","enabled":true},{"code":"5","readonly":false,"value":"BR","enabled":true},{"code":"21","readonly":false,"value":"CH","enabled":true},{"code":"29","readonly":false,"value":"CN","enabled":true},{"code":"30","readonly":false,"value":"CO","enabled":true},{"code":"69","readonly":false,"value":"CORP","enabled":true},{"code":"7","readonly":false,"value":"CZ","enabled":true},{"code":"1","readonly":false,"value":"DE","enabled":true},{"code":"8","readonly":false,"value":"DK","enabled":true},{"code":"24","readonly":false,"value":"DZ","enabled":true},{"code":"32","readonly":false,"value":"EE","enabled":true},{"code":"9","readonly":false,"value":"ES","enabled":true},{"code":"33","readonly":false,"value":"FI","enabled":true},{"code":"10","readonly":false,"value":"FR","enabled":true},{"code":"23","readonly":false,"value":"GB","enabled":true},{"code":"34","readonly":false,"value":"GE","enabled":true},{"code":"59","readonly":false,"value":"GP","enabled":true},{"code":"35","readonly":false,"value":"GR","enabled":true},{"code":"61","readonly":false,"value":"GY","enabled":true},{"code":"52","readonly":false,"value":"HK","enabled":true},{"code":"31","readonly":false,"value":"HR","enabled":true},{"code":"36","readonly":false,"value":"HU","enabled":true},{"code":"38","readonly":false,"value":"ID","enabled":true},{"code":"11","readonly":false,"value":"IE","enabled":true},{"code":"39","readonly":false,"value":"IL","enabled":true},{"code":"37","readonly":false,"value":"IN","enabled":true},{"code":"12","readonly":false,"value":"IT","enabled":true},{"code":"40","readonly":false,"value":"JP","enabled":true},{"code":"6","readonly":false,"value":"KR","enabled":true},{"code":"54","readonly":false,"value":"KW","enabled":true},{"code":"41","readonly":false,"value":"KZ","enabled":true},{"code":"42","readonly":false,"value":"LT","enabled":true},{"code":"43","readonly":false,"value":"LU","enabled":true},{"code":"51","readonly":false,"value":"LV","enabled":true},{"code":"50","readonly":false,"value":"MA","enabled":true},{"code":"66","readonly":false,"value":"MF","enabled":true},{"code":"60","readonly":false,"value":"MQ","enabled":true},{"code":"45","readonly":false,"value":"MT","enabled":true},{"code":"44","readonly":false,"value":"MY","enabled":true},{"code":"46","readonly":false,"value":"NC","enabled":true},{"code":"14","readonly":false,"value":"NL","enabled":true},{"code":"13","readonly":false,"value":"NO","enabled":true},{"code":"55","readonly":false,"value":"OM","enabled":true},{"code":"68","readonly":false,"value":"PF","enabled":true},{"code":"15","readonly":false,"value":"PL","enabled":true},{"code":"64","readonly":false,"value":"PM","enabled":true},{"code":"16","readonly":false,"value":"PT","enabled":true},{"code":"56","readonly":false,"value":"QA","enabled":true},{"code":"62","readonly":false,"value":"RE","enabled":true},{"code":"17","readonly":false,"value":"RO","enabled":true},{"code":"18","readonly":false,"value":"RU","enabled":true},{"code":"57","readonly":false,"value":"SA","enabled":true},{"code":"20","readonly":false,"value":"SE","enabled":true},{"code":"47","readonly":false,"value":"SG","enabled":true},{"code":"19","readonly":false,"value":"SI","enabled":true},{"code":"48","readonly":false,"value":"SK","enabled":true},{"code":"22","readonly":false,"value":"TR","enabled":true},{"code":"49","readonly":false,"value":"UA","enabled":true},{"code":"67","readonly":false,"value":"WF","enabled":true},{"code":"63","readonly":false,"value":"YT","enabled":true}]}
> 2024-05-29 14:46:11,688|SIMPLICITE|DEBUG||http://simplicite-trn-5768d8f76f-q7rfl:8080||DEBUG|system|com.simplicite.webapp.tools.ServletTool|setHTTPHeaders||Event: [REQUEST] method POST on /ui/json/obj from 10.253.85.24 with session 34B0C935C0AFB387504B1C41EDD8E8EF, [RESPONSE] MIME type: application/json max age: -1 seconds