182 bugfix

This commit is contained in:
2025-11-28 19:05:52 +03:00
parent db40a821dd
commit fafbaa4428
2 changed files with 6 additions and 3 deletions
+3 -2
View File
@@ -52,7 +52,7 @@
//variables.framework.docs={};
variables.framework.docs.APIName="svc-api";
variables.framework.docs.APIVersion="0.181"; /*$ git config --global --unset user.password*/
variables.framework.docs.APIVersion="0.182"; /*$ git config --global --unset user.password*/
variables.framework.globalHeaders = structNew();
variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location";
@@ -80,7 +80,7 @@
// в нем, когда переменная получает значение Empty:null, можно выполнить writedump, а в других получаем ошибку, что такой переменной нет
request.auth_header="";
request.locateIamService=locateIamService; //for possible debug
//request.locateIamService=locateIamService; //for possible debug
//request.IAM_SERVICE_URL=this.iamServiceUrl; // так не работает!
</cfscript>
@@ -236,6 +236,7 @@
//}
//if (UCase(arguments.verb) EQ 'OPTIONS') return newRepresentation().noData().withStatus("204","No Data").withHeaders({"Content-Type":"application/json;charset=utf-8"});
request.stand=this.getStand();
request.iam_service_url=this.iamServiceUrl;
if (uCase(arguments.verb) EQ 'OPTIONS') return true;
+3 -1
View File
@@ -124,6 +124,7 @@
<cfset logVaultAccess(
request.iam_service_url,
request.auth_header,
request.stand,
arguments.instanceUid,
arguments.secretName,
vaultUrl,
@@ -142,6 +143,7 @@
<cffunction name="logVaultAccess" returntype="void">
<cfargument name="iamUrl" type="string" required=true hint=""/>
<cfargument name="authHeader" type="string" required=true hint="type:string"/>
<cfargument name="stand" type="string" required=true hint="type:string"/>
<cfargument name="instanceUid" type="string" required=true hint="type:UUID"/>
<cfargument name="secretName" type="string" required=true hint="type:string"/>
<cfargument name="vaultUrl" type="string" required=true hint="type:string"/>
@@ -177,7 +179,7 @@
"secretName": "#arguments.secretName#",
"action": "view",
"instance_uid": "#arguments.instanceUid#",
"environment": "#getStand()#",
"environment": "#arguments.stand#",
"usr_id": "#arguments.usrId#",
"contragent_id": "#arguments.contragentId#",
"login": "#arguments.login#",