mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-02 10:23:51 +00:00
Bug 4104: Removed max length of image URL.
This commit is contained in:
1 parent
fc5ed6b317
commit
a01e0e979c
3 files changed
-5
No files matched your search
-1
@@ -39,7 +39,6 @@ public class TagInputPanel extends FlowPanel {
|
||||
imageURLTextBox = new TextBox();
|
||||
imageURLTextBox.setStyleName(style.tagInputPanelImageURL());
|
||||
imageURLTextBox.setTitle(stringMessages.tagLabelImageURL());
|
||||
imageURLTextBox.getElement().setAttribute("maxlength", Integer.toString(TagDTO.MAX_IMAGE_URL_LENGTH));
|
||||
imageURLTextBox.getElement().setPropertyString("placeholder", stringMessages.tagLabelImageURL());
|
||||
add(imageURLTextBox);
|
||||
|
||||
|
||||
-3
@@ -6488,9 +6488,6 @@ public class SailingServiceImpl extends ProxiedRemoteServiceServlet
|
||||
if (comment.length() > TagDTO.MAX_COMMENT_LENGTH) {
|
||||
throw new Exception("tagCommentIsToLong");
|
||||
}
|
||||
if (imageURL.length() > TagDTO.MAX_IMAGE_URL_LENGTH) {
|
||||
throw new Exception("tagImageURLIsToLong");
|
||||
}
|
||||
SecurityUtils.getSubject().checkPermission(
|
||||
Permission.LEADERBOARD.getStringPermissionForObjects(Mode.UPDATE, leaderboardName));
|
||||
RaceLog raceLog = getService().getRaceLog(leaderboardName, raceColumnName, fleetName);
|
||||
|
||||
@@ -10,7 +10,6 @@ public class TagDTO implements IsSerializable {
|
||||
private TimePoint raceTimepoint, createdAt, revokedAt;
|
||||
|
||||
public static final int MAX_TAG_LENGTH = 100;
|
||||
public static final int MAX_IMAGE_URL_LENGTH = 200;
|
||||
public static final int MAX_COMMENT_LENGTH = 400;
|
||||
|
||||
// for GWT
|
||||
|
||||
Reference in new issue
Block a user