mitchell852 closed pull request #2281: Increase hostname and domain name length 
limit in Traffic Portal
URL: https://github.com/apache/incubator-trafficcontrol/pull/2281
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/traffic_portal/app/src/common/modules/form/server/form.server.tpl.html 
b/traffic_portal/app/src/common/modules/form/server/form.server.tpl.html
index 50ef74fb6..6e96f4f2a 100644
--- a/traffic_portal/app/src/common/modules/form/server/form.server.tpl.html
+++ b/traffic_portal/app/src/common/modules/form/server/form.server.tpl.html
@@ -66,7 +66,7 @@
             <div class="form-group" ng-class="{'has-error': 
hasError(serverForm.hostName), 'has-feedback': hasError(serverForm.hostName)}">
                 <label class="control-label col-md-2 col-sm-2 
col-xs-12">Hostname *</label>
                 <div class="col-md-10 col-sm-10 col-xs-12">
-                    <input name="hostName" type="text" class="form-control" 
ng-model="server.hostName" ng-maxlength="45" 
ng-pattern="/^([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/" required 
autofocus>
+                    <input name="hostName" type="text" class="form-control" 
ng-model="server.hostName" ng-maxlength="100" 
ng-pattern="/^([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/" required 
autofocus>
                     <small class="input-error" 
ng-show="hasPropertyError(serverForm.hostName, 'required')">Required</small>
                     <small class="input-error" 
ng-show="hasPropertyError(serverForm.hostName, 'maxlength')">Too Long</small>
                     <small class="input-error" 
ng-show="hasPropertyError(serverForm.hostName, 'pattern')">Invalid</small>
@@ -76,7 +76,7 @@
             <div class="form-group" ng-class="{'has-error': 
hasError(serverForm.domainName), 'has-feedback': 
hasError(serverForm.domainName)}">
                 <label class="control-label col-md-2 col-sm-2 
col-xs-12">Domain name *</label>
                 <div class="col-md-10 col-sm-10 col-xs-12">
-                    <input name="domainName" type="text" class="form-control" 
ng-model="server.domainName" ng-maxlength="45" ng-pattern="/^\S*$/" required 
autofocus>
+                    <input name="domainName" type="text" class="form-control" 
ng-model="server.domainName" ng-maxlength="100" ng-pattern="/^\S*$/" required 
autofocus>
                     <small class="input-error" 
ng-show="hasPropertyError(serverForm.domainName, 'required')">Required</small>
                     <small class="input-error" 
ng-show="hasPropertyError(serverForm.domainName, 'maxlength')">Too Long</small>
                     <small class="input-error" 
ng-show="hasPropertyError(serverForm.domainName, 'pattern')">Invalid</small>


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to