Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1996,13 +1996,13 @@ private void checkProjectData(ProjectData projectData, boolean isCreate) throws
throw logException(new IllegalArgumentFault("The name attribute of the project data can not be null."));
} else if (name.trim().length() == 0) {
throw logException(new IllegalArgumentFault("The name attribute of the project data can not be empty."));
} else if (name.trim().length() > 200) {
throw logException(new IllegalArgumentFault("The name attribute of the project data cannot be more than 200 characters."));
}

String description = projectData.getDescription();
if (null == description) {
throw logException(new IllegalArgumentFault("The description attribute of the project data can not be null."));
} else if (description.trim().length() == 0) {
throw logException(new IllegalArgumentFault("The description attribute of the project data can not be empty."));
if (null != description && description.trim().length() > 10000) {
throw logException(new IllegalArgumentFault("The description attribute of the project data cann't be more than 10000 characters."));
}

//added in version 2.2
Expand Down
4 changes: 1 addition & 3 deletions src/web/scripts/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,9 @@ $(document).ready(function() {

$("#swFileDescription, #fileDescription, #fileDescription2").bind('keydown keyup paste', limitFileDescriptionChars(200));

$("#newProjectDescription").bind('keydown keyup paste', limitFileDescriptionChars(2000));
$("#newProjectDescription").bind('keydown keyup paste', limitFileDescriptionChars(10000));
});

var invalidCharsRegExp = /[^a-zA-Z0-9\$!\(\)\[\]\'\"\-\.\,\/\+ ]+/mg;

var DEFAULT_TIMEZONE = "America/New_York";

/**
Expand Down