You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "MertkanOzlu (via GitHub)" <gi...@apache.org> on 2026/01/09 12:10:24 UTC
[I] domainIds parameter in updatenetworkoffering API limited to 255 characters, preventing multi-domain offerings [cloudstack]
MertkanOzlu opened a new issue, #12399:
URL: https://github.com/apache/cloudstack/issues/12399
### problem
When updating a network offering with multiple domains using the `updatenetworkoffering` API, the request fails with HTTP 431 error if the combined length of domain IDs exceeds 255 characters.
**Error message:**
`Unable to execute API command updatenetworkoffering due to invalid value. Value greater than max allowed length 255 for param: domainIds`
Since each UUID is 36 characters, this effectively limits domain selection to approximately 7 domains (including comma separators), which is insufficient for enterprise environments with many domains/tenants.
### versions
CloudStack: 4.20
Hypervisor: VMware
Database: MySQL
### The steps to reproduce the bug
1. Navigate to Service Offerings → Network Offerings
2. Select an existing network offering and click "Edit" (or use API directly)
3. Try to assign the offering to more than 7 domains (where total UUID string length exceeds 255 characters)
4. Click "Save" or execute `updatenetworkoffering` API call
5. Observe HTTP 431 error with message: "Value greater than max allowed length 255 for param: domainIds"
### What to do about it?
**Suggested fix:**
Increase the `domainIds` parameter length limit from 255 to at least 4096 characters (or make it TEXT type) in the API parameter validation.
The limitation appears to be in the API parameter validation layer. Since domain assignments are a legitimate enterprise use case, the character limit should accommodate at least 50-100 domains.
**Affected code (probable location):**
- API command validation for `updatenetworkoffering`
- Similar commands like `updatevpcoffering`, `updatediskoffering`, `updateserviceoffering` may have the same limitation
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] domainIds parameter in updatenetworkoffering API limited to 255 characters, preventing multi-domain offerings [cloudstack]
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #12399:
URL: https://github.com/apache/cloudstack/issues/12399#issuecomment-3728656320
Thanks for opening your first issue here! Be sure to follow the issue template!
--
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: [I] domainIds parameter in updatenetworkoffering API limited to 255 characters, preventing multi-domain offerings [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #12399:
URL: https://github.com/apache/cloudstack/issues/12399#issuecomment-3784444747
fixed by #12431
--
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: [I] domainIds parameter in updatenetworkoffering API limited to 255 characters, preventing multi-domain offerings [cloudstack]
Posted by "nvazquez (via GitHub)" <gi...@apache.org>.
nvazquez commented on issue #12399:
URL: https://github.com/apache/cloudstack/issues/12399#issuecomment-3754140675
Hi @MertkanOzlu @DaanHoogland I have created the PR https://github.com/apache/cloudstack/pull/12431 to address the issue
--
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: [I] domainIds parameter in updatenetworkoffering API limited to 255 characters, preventing multi-domain offerings [cloudstack]
Posted by "MertkanOzlu (via GitHub)" <gi...@apache.org>.
MertkanOzlu commented on issue #12399:
URL: https://github.com/apache/cloudstack/issues/12399#issuecomment-3749404557
> [@MertkanOzlu](https://github.com/MertkanOzlu) there is no text type in the API, but I think it can be increased to 4096 (or even more)
Thank you for the clarification.
This is a real issue for large enterprises with many domains. The current 255-character limit is too restrictive. Increasing it to 4096 (or more), as you suggested, would be a reasonable and practical improvement.
--
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: [I] domainIds parameter in updatenetworkoffering API limited to 255 characters, preventing multi-domain offerings [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #12399:
URL: https://github.com/apache/cloudstack/issues/12399#issuecomment-3749340680
@MertkanOzlu there is no text type in the API, but I think it can be increased to 4096 (or even more)
--
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: [I] domainIds parameter in updatenetworkoffering API limited to 255 characters, preventing multi-domain offerings [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland closed issue #12399: domainIds parameter in updatenetworkoffering API limited to 255 characters, preventing multi-domain offerings
URL: https://github.com/apache/cloudstack/issues/12399
--
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: [I] domainIds parameter in updatenetworkoffering API limited to 255 characters, preventing multi-domain offerings [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #12399:
URL: https://github.com/apache/cloudstack/issues/12399#issuecomment-3758731086
@MertkanOzlu , would you see chance to apply this change and test it?
--
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