Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-12806] disabling form validation on the view map, since it c…
…auses issues with large maps
  • Loading branch information
Rob Petti committed Oct 9, 2012
1 parent ecbba4b commit e94f71f
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/main/java/hudson/plugins/perforce/PerforceSCM.java
Expand Up @@ -1989,26 +1989,6 @@ public FormValidation doValidateStream(StaplerRequest req) throws IOException, S
return FormValidation.ok();
}

/**
* Checks if the value is a valid Perforce project path.
*/
public FormValidation doCheckProjectPath(@QueryParameter String value) throws IOException, ServletException {
String view = Util.fixEmptyAndTrim(value);
if (view != null) {
for (String mapping : view.replace("\r","").split("\n")) {
if (!DEPOT_ONLY.matcher(mapping).matches() &&
!DEPOT_AND_WORKSPACE.matcher(mapping).matches() &&
!DEPOT_ONLY_QUOTED.matcher(mapping).matches() &&
!DEPOT_AND_WORKSPACE_QUOTED.matcher(mapping).matches() &&
!DEPOT_AND_QUOTED_WORKSPACE.matcher(mapping).matches() &&
!QUOTED_DEPOT_AND_WORKSPACE.matcher(mapping).matches() &&
!COMMENT.matcher(mapping).matches())
return FormValidation.error("Invalid mapping:" + mapping);
}
}
return FormValidation.ok();
}

public FormValidation doCheckViewMask(StaplerRequest req) {
String view = Util.fixEmptyAndTrim(req.getParameter("viewMask"));
if (view != null) {
Expand Down

0 comments on commit e94f71f

Please sign in to comment.