-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Properties not exported correctly (empty or with wrong value) #473
Comments
Hi @Rennaud, app.config value // custom properties
customProperty1: {
label: 'Custom Property #1',
permissions: {
admin: { read: true, write: true, visible:true },
oadmin: { read: true, write: true, visible:true },
user: { read: true, write: false, visible:true }
}
},
customProperty2: {
label: 'Custom Property #2',
type: 'select',
permissions: {
admin: { read: true, write: true, visible:true },
oadmin: { read: true, write: true, visible:true },
user: { read: true, write: false, visible:true }
},
options: [
{ value: '1', label: 'Value 1' },
{ value: '2', label: 'Value 2' },
{ value: '3', label: 'Value 3' }
]
},
customProperty3: {
label: 'Custom Property #3',
type: 'switch',
permissions: {
admin: { read: true, write: true, visible:true },
oadmin: { read: true, write: true, visible:true },
user: { read: true, write: false, visible:true }
},
options: [
{ value: true, label: 'ON' },
{ value: false, label: 'OFF' }
]
} Application export output: {
"name" : "test",
"organization" : "API Development",
"state" : "approved",
"enabled" : true,
"credentials" : [ ],
"apis" : [ {
"apiName" : "Health",
"apiVersion" : "1.0"
} ],
"customProperties" : {
"customProperty1" : "",
"customProperty2" : "2",
"customProperty3" : "true"
},
"permissions" : [ ],
"appScopes" : [ ]
} Logs
Can you please test it again? |
Hi @rathnapandi , I found maybe how to reproduce : Here some logs : Test Case 1 2024-03-26 09:25:24,246 [APIManagerCLI] INFO : API-Manager CLI: 1.14.4 $ grep -i "KERBEROS" "C:\Users\caxwayac-e\Documents\export_apimcli\api-manager\INT\applications" -R | grep codeAramis C:\Users\caxwayac-e\Documents\export_apimcli\api-manager\INT\applications/support-interne/LC4_CBILAN/application-config.json: "codeAramis" : "KERBEROS", Test Case 2 2024-03-26 09:25:42,125 [APIManagerCLI] INFO : API-Manager CLI: 1.14.4 caxwayac-e@DWVD006145 MINGW64 ~/Documents/apim-cli-1.13.5/scripts |
Hello, I also reproduce it in an API Manager with : 7 APIs, 5 remote hosts, 5 organizations, 14 users and 20 applications. |
Hi @Rennaud , Can your run api call to get all applications(https://10.129.144.250:8075/api/portal/v1.4/applications) and share it via my work email please? Thanks |
Hi @rathnapandi, I have sent to you the output of the api call. Regards |
Thanks @Rennaud, I will test and get back to you. |
APIM-CLI version
1.14.4
API-Management version
7.7.20220228
Bug description
We have an application with Custom Properties and values :
The export shows :
"customProperties" : {
"codeAramis" : "",
"domaine" : "",
"roles" : "",
"idAramis" : "2246"
},
codeAramis, domaine and roles should not be empty and idAramis is empty!!
We dit try with the version 1.14.1 and it works fine :
"customProperties" : {
"codeAramis" : "KERBEROS",
"idAramis" : "",
"domaine" : "KERBEROS",
"roles" : "LC4"
},
Steps to reproduce
Creates custom properties on applications and create an application with values in it.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: