Copilot commented on code in PR #14009:
URL: https://github.com/apache/cloudstack/pull/14009#discussion_r4678566666


##########
api/src/main/java/org/apache/cloudstack/api/ApiArgValidator.java:
##########
@@ -49,15 +49,21 @@ public enum ApiArgValidator {
     RFCComplianceDomainName,
 
     /**
-     * Validates command option strings to avoid unsafe/code-like content.
+     * Validates mount command option strings to avoid unsafe/code-like 
content.
      */
-    SafeCommandOptions((param, annotation) -> {
+    SafeMountCommandOptions((param, annotation) -> {

Review Comment:
   This removes the existing public `ApiArgValidator.SafeCommandOptions` enum 
constant instead of adding a mount-specific validator alongside it. Any 
downstream command/plugin compiled against that API will fail to compile (or 
fail with `NoSuchFieldError` when the annotation is loaded), even though this 
bug fix does not require a breaking API change. Keep the old constant and its 
dispatch case for compatibility, and use the new validator only for 
backup-repository mount options.



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

Reply via email to