Commit a3c80ff3 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

data overlay entries with too long name are skipped

parent a82160a4
Pipeline #38714 failed with stage
in 19 minutes and 12 seconds
......@@ -98,6 +98,10 @@ public abstract class V16_0_0_20200930_2__generic_data_overlay_entry_data extend
private void addEntries(Integer overlayId, Set<? extends DataOverlayEntry> entries, Context context)
throws SQLException {
for (DataOverlayEntry dataOverlayEntry : entries) {
if (dataOverlayEntry.getName() != null && dataOverlayEntry.getName().length() > 255) {
logger.warn("Data overlay entry with too long name. Skipping: \"" + dataOverlayEntry.getName() + "\"");
continue;
}
String distinguisher = "GENERIC_DATA_OVERLAY";
if (dataOverlayEntry instanceof GeneVariantDataOverlayEntry) {
distinguisher = "GENE_VARIANT_DATA_OVERLAY";
......@@ -342,7 +346,7 @@ public abstract class V16_0_0_20200930_2__generic_data_overlay_entry_data extend
for (int i = 0; i < columns.length; i++) {
String column = columns[i].trim().toLowerCase();
String value = null;
//there might be some broken entries
// there might be some broken entries
if (data.length > i) {
value = data[i];
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment