vishesh92 commented on PR #10773:
URL: https://github.com/apache/cloudstack/pull/10773#issuecomment-2850218294
@shwstppr Found one bug in `listTemplates` command.
After setting `showAllCategoryForModernImageSelection` to true in the
`config.json`, if you select the all category the request to the MS fails with
the below error.
```
Unable to find on DB, due to: You have an error in your SQL syntax; check
the manual that corresponds to your MySQL server version for the right syntax
to use near ') AND template_view.account_type != 5 AND
template_view.hypervisor_type='KVM' ' at line 1
```
Query params for the failed request
```json
{
"oscategoryid": "-1",
"page": "1",
"pageSize": "10",
"zoneid": "cd313a1e-89f5-4d20-bfab-2ec2f41d259c",
"account": "admin",
"domainid": "22bb67fe-2976-11f0-93a0-1e0077000180",
"templatefilter": "all",
"details": "all",
"showicon": "true",
"isvnf": "false",
"command": "listTemplates"
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]