You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "sureshanaparti (via GitHub)" <gi...@apache.org> on 2026/02/23 13:08:40 UTC
[PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
sureshanaparti opened a new pull request, #12689:
URL: https://github.com/apache/cloudstack/pull/12689
### Description
This PR fixes test_accounts.py failure - fallback using the camelCase parameter name "domainId".
<!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual behaviours, steps to reproduce. -->
<!-- When "Fixes: #<id>" is specified, the issue/PR will automatically be closed when this PR gets merged -->
<!-- For addressing multiple issues/PRs, use multiple "Fixes: #<id>" -->
<!-- Fixes: # -->
<!--- ******************************************************************************* -->
<!--- NOTE: AUTOMATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE DOCUMENTATION. -->
<!--- PLEASE PUT AN 'X' in only **ONE** box -->
<!--- ******************************************************************************* -->
### Types of changes
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] Enhancement (improves an existing feature and functionality)
- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
- [ ] Build/CI
- [ ] Test (unit or integration test code)
### Feature/Enhancement Scale or Bug Severity
#### Feature/Enhancement Scale
- [ ] Major
- [ ] Minor
#### Bug Severity
- [ ] BLOCKER
- [ ] Critical
- [ ] Major
- [x] Minor
- [ ] Trivial
### Screenshots (if appropriate):
### How Has This Been Tested?
<!-- Please describe in detail how you tested your changes. -->
<!-- Include details of your testing environment, and the tests you ran to -->
#### How did you try to break this feature and the system with this change?
<!-- see how your change affects other areas of the code, etc. -->
<!-- Please read the [CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md) document -->
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3950350644
> > > I feel we should either fix the caller or adopt a generic approach for all params.
> >
> >
> > the parameter convention is all lowercase.
….
> We would need to deprecate the parameter in these APIs.
yes
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3945448168
> > @sureshanaparti , can we root out camel case for API/Params completely? this is techdebt byting us.
>
> @DaanHoogland it seems camel cases (domainId, clusterId, zoneId, etc) were used in marvin tests, we can address them later in a separate pr?
created an issue for it: #12691
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3949943137
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16925
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#discussion_r2840802280
##########
plugins/user-authenticators/oauth2/src/main/java/org/apache/cloudstack/oauth2/api/command/OauthLoginAPIAuthenticatorCmd.java:
##########
@@ -177,6 +177,10 @@ private String doOauthAuthentication(HttpSession session, Long domainId, String
protected Long getDomainIdFromParams(Map<String, Object[]> params, StringBuilder auditTrailSb, String responseType) {
String[] domainIdArr = (String[])params.get(ApiConstants.DOMAIN_ID);
+ if (domainIdArr == null) {
+ // Fallback to support clients using the camelCase parameter name "domainId"
+ domainIdArr = (String[])params.get(ApiConstants.DOMAIN__ID);
+ }
Review Comment:
The new fallback to accept both "domainid" and "domainId" is duplicated here and in DefaultLoginAPIAuthenticatorCmd. Consider extracting a small shared helper (e.g., in a common auth/util class) to reduce the chance of future auth paths missing the same compatibility handling.
##########
server/src/main/java/com/cloud/api/auth/DefaultLoginAPIAuthenticatorCmd.java:
##########
@@ -110,7 +110,11 @@ public String authenticate(String command, Map<String, Object[]> params, HttpSes
// FIXME: ported from ApiServlet, refactor and cleanup
final String[] username = (String[])params.get(ApiConstants.USERNAME);
final String[] password = (String[])params.get(ApiConstants.PASSWORD);
- final String[] domainIdArr = (String[])params.get(ApiConstants.DOMAIN_ID);
+ String[] domainIdArr = (String[])params.get(ApiConstants.DOMAIN_ID);
+ if (domainIdArr == null) {
+ // Fallback to support clients using the camelCase parameter name "domainId"
+ domainIdArr = (String[])params.get(ApiConstants.DOMAIN__ID);
+ }
Review Comment:
This same dual-parameter lookup logic is now required in multiple authenticators (e.g., OAuth2 and default login). Consider centralizing the lookup (e.g., a helper that returns the first non-null entry for DOMAIN_ID / DOMAIN__ID) to avoid future inconsistencies.
##########
plugins/user-authenticators/oauth2/src/main/java/org/apache/cloudstack/oauth2/api/command/OauthLoginAPIAuthenticatorCmd.java:
##########
@@ -177,6 +177,10 @@ private String doOauthAuthentication(HttpSession session, Long domainId, String
protected Long getDomainIdFromParams(Map<String, Object[]> params, StringBuilder auditTrailSb, String responseType) {
String[] domainIdArr = (String[])params.get(ApiConstants.DOMAIN_ID);
+ if (domainIdArr == null) {
+ // Fallback to support clients using the camelCase parameter name "domainId"
+ domainIdArr = (String[])params.get(ApiConstants.DOMAIN__ID);
+ }
Review Comment:
This adds behavior to accept the camelCase "domainId" parameter, but there doesn't appear to be a unit test covering this path (the existing tests use ApiConstants.DOMAIN_ID). Please add/extend a test to verify that passing ApiConstants.DOMAIN__ID is accepted and parsed correctly.
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "abh1sar (via GitHub)" <gi...@apache.org>.
abh1sar commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3949644984
@blueorangutan package
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3944764782
@sureshanaparti , can we root out camel case for API/Params completely? this is techdebt byting us.
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "sureshanaparti (via GitHub)" <gi...@apache.org>.
sureshanaparti commented on code in PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#discussion_r2840971411
##########
plugins/user-authenticators/oauth2/src/main/java/org/apache/cloudstack/oauth2/api/command/OauthLoginAPIAuthenticatorCmd.java:
##########
@@ -177,6 +177,10 @@ private String doOauthAuthentication(HttpSession session, Long domainId, String
protected Long getDomainIdFromParams(Map<String, Object[]> params, StringBuilder auditTrailSb, String responseType) {
String[] domainIdArr = (String[])params.get(ApiConstants.DOMAIN_ID);
+ if (domainIdArr == null) {
+ // Fallback to support clients using the camelCase parameter name "domainId"
+ domainIdArr = (String[])params.get(ApiConstants.DOMAIN__ID);
+ }
Review Comment:
done
##########
server/src/main/java/com/cloud/api/auth/DefaultLoginAPIAuthenticatorCmd.java:
##########
@@ -110,7 +110,11 @@ public String authenticate(String command, Map<String, Object[]> params, HttpSes
// FIXME: ported from ApiServlet, refactor and cleanup
final String[] username = (String[])params.get(ApiConstants.USERNAME);
final String[] password = (String[])params.get(ApiConstants.PASSWORD);
- final String[] domainIdArr = (String[])params.get(ApiConstants.DOMAIN_ID);
+ String[] domainIdArr = (String[])params.get(ApiConstants.DOMAIN_ID);
+ if (domainIdArr == null) {
+ // Fallback to support clients using the camelCase parameter name "domainId"
+ domainIdArr = (String[])params.get(ApiConstants.DOMAIN__ID);
+ }
Review Comment:
done
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3945324951
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "sureshanaparti (via GitHub)" <gi...@apache.org>.
sureshanaparti commented on code in PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#discussion_r2841007274
##########
plugins/user-authenticators/oauth2/src/main/java/org/apache/cloudstack/oauth2/api/command/OauthLoginAPIAuthenticatorCmd.java:
##########
@@ -177,6 +177,10 @@ private String doOauthAuthentication(HttpSession session, Long domainId, String
protected Long getDomainIdFromParams(Map<String, Object[]> params, StringBuilder auditTrailSb, String responseType) {
String[] domainIdArr = (String[])params.get(ApiConstants.DOMAIN_ID);
+ if (domainIdArr == null) {
+ // Fallback to support clients using the camelCase parameter name "domainId"
+ domainIdArr = (String[])params.get(ApiConstants.DOMAIN__ID);
+ }
Review Comment:
done
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "sureshanaparti (via GitHub)" <gi...@apache.org>.
sureshanaparti commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3944706374
@blueorangutan package
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "shwstppr (via GitHub)" <gi...@apache.org>.
shwstppr commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3956844896
> > > I feel we should either fix the caller or adopt a generic approach for all params.
> >
> >
> > the parameter convention is all lowercase.
>
> OauthLogin and Login APIs expect domainId in camelCase https://cloudstack.apache.org/api/apidocs-4.20/apis/oauthlogin.html https://cloudstack.apache.org/api/apidocs-4.6/user/login.html
> <img alt="Screenshot 2026-02-24 at 2 59 28 PM" width="824" height="47" src="https://private-user-images.githubusercontent.com/63767682/554036499-bfe86615-c3d2-44e0-bb51-7388df8cdfaa.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzE5NTgwMjYsIm5iZiI6MTc3MTk1NzcyNiwicGF0aCI6Ii82Mzc2NzY4Mi81NTQwMzY0OTktYmZlODY2MTUtYzNkMi00NGUwLWJiNTEtNzM4OGRmOGNkZmFhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAyMjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMjI0VDE4Mjg0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVlYTFiMDVhZjUzMDdhZDczNGEzYzcyNjZjNTk4ZmM0ZmRhNDlmMDAzMTgyYzQxMjRhOGNlYWE0NWU2NzJjZmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.WW4-EEU9eSq_KziiE8ArVAlyUoXMocjyoXCw2QTtApg">
>
> We would need to deprecate the parameter in these APIs.
Sorry this wasn't clear from the PR title/description
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - keep the camelCase parameter name "domainId" [cloudstack]
Posted by "sureshanaparti (via GitHub)" <gi...@apache.org>.
sureshanaparti commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3957057257
> > > > I feel we should either fix the caller or adopt a generic approach for all params.
> > >
> > >
> > > the parameter convention is all lowercase.
> >
> >
> > OauthLogin and Login APIs expect domainId in camelCase https://cloudstack.apache.org/api/apidocs-4.20/apis/oauthlogin.html https://cloudstack.apache.org/api/apidocs-4.6/user/login.html
> > <img alt="Screenshot 2026-02-24 at 2 59 28 PM" width="824" height="47" src="https://private-user-images.githubusercontent.com/63767682/554036499-bfe86615-c3d2-44e0-bb51-7388df8cdfaa.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzE5NTgwMjYsIm5iZiI6MTc3MTk1NzcyNiwicGF0aCI6Ii82Mzc2NzY4Mi81NTQwMzY0OTktYmZlODY2MTUtYzNkMi00NGUwLWJiNTEtNzM4OGRmOGNkZmFhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAyMjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMjI0VDE4Mjg0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVlYTFiMDVhZjUzMDdhZDczNGEzYzcyNjZjNTk4ZmM0ZmRhNDlmMDAzMTgyYzQxMjRhOGNlYWE0NWU2NzJjZmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.WW4-EEU9eSq_KziiE8ArVAlyUoXMocjyoXCw2QTtApg">
> > We would need to deprecate the parameter in these APIs.
>
> Sorry this wasn't clear from the PR title/description
@shwstppr @abh1sar I've removed the camelCase parameter in this PR: https://github.com/apache/cloudstack/pull/12585, resulting in test failure, so fixed it for the test. We can address using a generic approach (all lowercase) and deprecate the camelCase parameters (wherever used) in a separate PR.
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3944736222
## [Codecov](https://app.codecov.io/gh/apache/cloudstack/pull/12689?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 4.15%. Comparing base ([`d054344`](https://app.codecov.io/gh/apache/cloudstack/commit/d0543449a66714dc37c754d57a6072f5a3ae84dd?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`9220ffc`](https://app.codecov.io/gh/apache/cloudstack/commit/9220ffc36873da6369b77dc55b1b27b192425de0?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 2 commits behind head on 4.20.
> :exclamation: There is a different number of reports uploaded between BASE (d054344) and HEAD (9220ffc). Click for more details.
>
> <details><summary>HEAD has 1 upload less than BASE</summary>
>
>| Flag | BASE (d054344) | HEAD (9220ffc) |
>|------|------|------|
>|unittests|1|0|
></details>
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## 4.20 #12689 +/- ##
=============================================
- Coverage 16.25% 4.15% -12.11%
=============================================
Files 5662 404 -5258
Lines 500149 32966 -467183
Branches 60735 5893 -54842
=============================================
- Hits 81309 1370 -79939
+ Misses 409755 31420 -378335
+ Partials 9085 176 -8909
```
| [Flag](https://app.codecov.io/gh/apache/cloudstack/pull/12689/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [uitests](https://app.codecov.io/gh/apache/cloudstack/pull/12689/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `4.15% <ø> (-0.01%)` | :arrow_down: |
| [unittests](https://app.codecov.io/gh/apache/cloudstack/pull/12689/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
</details>
[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/cloudstack/pull/12689?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3951004651
> We would need to deprecate the parameter in these APIs.
agree, but we still have to support it in current releases (4.20/4.22, even 4.23)
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3945749285
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✖️ debian ✔️ suse15. SL-JID 16912
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3949656570
@abh1sar a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - keep the camelCase parameter "domainId" [cloudstack]
Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3958354287
@RosiKyu a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3945028286
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16910
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3944713383
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "sureshanaparti (via GitHub)" <gi...@apache.org>.
sureshanaparti commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3944933237
> @sureshanaparti , can we root out camel case for API/Params completely? this is techdebt byting us.
@DaanHoogland it seems camel cases (domainId, clusterId, zoneId, etc) were used in marvin tests, we can address them later in a separate pr?
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - keep the camelCase parameter "domainId" [cloudstack]
Posted by "RosiKyu (via GitHub)" <gi...@apache.org>.
RosiKyu commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3958348436
@blueorangutan test
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "abh1sar (via GitHub)" <gi...@apache.org>.
abh1sar commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3950325763
> > I feel we should either fix the caller or adopt a generic approach for all params.
>
> the parameter convention is all lowercase.
OauthLogin and Login APIs expect domainId in camelCase
https://cloudstack.apache.org/api/apidocs-4.20/apis/oauthlogin.html
https://cloudstack.apache.org/api/apidocs-4.6/user/login.html
<img width="824" height="47" alt="Screenshot 2026-02-24 at 2 59 28 PM" src="https://github.com/user-attachments/assets/bfe86615-c3d2-44e0-bb51-7388df8cdfaa" />
We would need to deprecate the parameter in these APIs.
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3950289432
> I feel we should either fix the caller or adopt a generic approach for all params.
the parameter convention is all lowercase.
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test_accounts.py failure fix - fallback using the camelCase parameter name "domainId" [cloudstack]
Posted by "sureshanaparti (via GitHub)" <gi...@apache.org>.
sureshanaparti commented on PR #12689:
URL: https://github.com/apache/cloudstack/pull/12689#issuecomment-3945314572
@blueorangutan package
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org