File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
java/org/commonwl/viewer/domain Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,13 @@ private void addDocs(List<RepositoryContents> repoContents) throws IOException {
128
128
addDocs (subdirectory );
129
129
130
130
} else if (repoContent .getType ().equals (FILE )) {
131
- // Keep track of total file size for limit
132
- totalFileSize += repoContent .getSize ();
131
+
132
+ // Keep track of total file size for limit - only track files which
133
+ // will be added to the RO bundle due to being small enough
134
+ if (repoContent .getSize () <= singleFileSizeLimit ) {
135
+ totalFileSize += repoContent .getSize ();
136
+ }
137
+
133
138
if (totalFileSize <= totalFileSizeLimit ) {
134
139
// Get the file extension
135
140
int eIndex = repoContent .getName ().lastIndexOf ('.' ) + 1 ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ cacheDays = 1
20
20
# be externally linked in the Research Object Bundle
21
21
singleFileSizeLimit = 5242880
22
22
23
- # File size limit for the contents of the entire repository path in bytes
23
+ # File size limit for the contents of the research object bundle (not counting external links)
24
24
totalFileSizeLimit = 1073741824
25
25
26
26
# =======================
You can’t perform that action at this time.
0 commit comments