DaanHoogland commented on code in PR #6768:
URL: https://github.com/apache/cloudstack/pull/6768#discussion_r983188365


##########
server/src/main/java/com/cloud/template/TemplateManagerImpl.java:
##########
@@ -1747,8 +1747,8 @@ public VMTemplateVO 
createPrivateTemplateRecord(CreateTemplateCmd cmd, Account t
         _accountMgr.checkAccess(caller, null, true, templateOwner);
 
         String name = cmd.getTemplateName();
-        if ((name == null) || (name.length() > 32)) {
-            throw new InvalidParameterValueException("Template name cannot be 
null and should be less than 32 characters");
+        if ((name == null) || (name.length() > 255)) {

Review Comment:
   yes, but that constant would have to be used in more than just this method 
(also for registiring/editting of a template. That would be a bit beyond the 
scope of this change.



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