Skip to content

Commit 6589748

Browse files
committed
Update several mGAP URLs for JBrowse 2
1 parent bbebb14 commit 6589748

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

jbrowse/src/org/labkey/jbrowse/JBrowseController.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,14 @@ public void validateForm(GetGenotypesForm form, Errors errors)
528528
errors.reject(ERROR_MSG, "Must provide the trackId");
529529
return;
530530
}
531-
531+
else
532+
{
533+
if (!isValidUUID(form.getTrackId()))
534+
{
535+
errors.reject(ERROR_MSG, "Invalid track ID: " + form.getTrackId());
536+
return;
537+
}
538+
}
532539

533540
List<JsonFile> jsonFiles = getJsonFiles(form);
534541
if (jsonFiles == null || jsonFiles.isEmpty())

0 commit comments

Comments
 (0)