You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "rosi-shapeblue (via GitHub)" <gi...@apache.org> on 2025/03/27 13:26:19 UTC

[I] Trailing Spaces in Size Input Fields Cause Submission Error [cloudstack]

rosi-shapeblue opened a new issue, #10627:
URL: https://github.com/apache/cloudstack/issues/10627

   ### problem
   
   **Description**
   
   When selecting a custom disk offering while creating a new volume or VM in CloudStack, entering a size value with a trailing space (e.g., "10 ") causes the API to fail with the error message **_"Unable to execute API command createVolume due to invalid value 10 for parameter size"_**. 
   
   The error message is misleading because the **value** itself is actually **valid**, but the system does not automatically trim the trailing space, causing the failure. This results in a submission error when the system attempts to process the request.
   
   ### versions
   
   CloudStack 4.20.0.0
   
   ### The steps to reproduce the bug
   
   1. Navigate to _Storage -> Volumes -> Create volume_
   2. Add new Volume
   3. Select "Custom disk offering" -> fill in all mandatory fields
   4. In the Size input field -> enter a value with a trailing space, e.g., "10 " (without quotes).
   5. Submit the form
   
   **Actual Result**
   
   The size field includes a trailing space, causing the backend to reject the request with the misleading error message about the invalid size. This results in a notification banner on the frontend indicating a submission error.
   
   <img width="1435" alt="Image" src="https://github.com/user-attachments/assets/3d4927b7-d513-4dd2-9687-09b2e1002531" />
   
   ### What to do about it?
   
   
   **Expected Result**
   
   The system should automatically trim spaces from the input field before submission, preventing the misleading error message. The size value should be considered valid once the space is trimmed, and the volume creation should proceed as expected.
   


-- 
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] Trailing Spaces in Size Input Fields Cause Submission Error [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #10627:
URL: https://github.com/apache/cloudstack/issues/10627#issuecomment-2858501917

   fixed in #10629 


-- 
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] Trailing Spaces in Size Input Fields Cause Submission Error [cloudstack]

Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #10627:
URL: https://github.com/apache/cloudstack/issues/10627#issuecomment-2758037911

   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] Trailing Spaces in Size Input Fields Cause Submission Error [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #10627:
URL: https://github.com/apache/cloudstack/issues/10627#issuecomment-2809417585

   Looks good @shwstppr , If we are sure we can close #10629 


-- 
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] Trailing Spaces in Size Input Fields Cause Submission Error [cloudstack]

Posted by "shwstppr (via GitHub)" <gi...@apache.org>.
shwstppr commented on issue #10627:
URL: https://github.com/apache/cloudstack/issues/10627#issuecomment-2809266312

   @rosi-shapeblue @weizhouapache @DaanHoogland I've created #10737  which should address this across UI


-- 
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] Trailing Spaces in Size Input Fields Cause Submission Error [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #10627:
URL: https://github.com/apache/cloudstack/issues/10627#issuecomment-2847033157

   @shwstppr I merged #10629 as this is not conflicting with #10737 , pending the discussion on whether that one might be to broad a comb (hope I have my english colloquium right)


-- 
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] Trailing Spaces in Size Input Fields Cause Submission Error [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland closed issue #10627: Trailing Spaces in Size Input Fields Cause Submission Error
URL: https://github.com/apache/cloudstack/issues/10627


-- 
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