Skip to content

Commit 8406879

Browse files
authored
Merge pull request #12252 from IQSS/fix-download-with-guestbook
Jenkins tests are failing - but that's on account of the localstack issue; plus there's nothing in the PR that could affect the restassured tests. Fix signature of writeGuestbookAndStartFileDownload in xhtml
2 parents 7b3137b + 83dc70b commit 8406879

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## Bug fix for JSF download file
2+
This fixes the issue where the action to download a single file in JSF UI silently fails
3+
4+
See:12251

src/main/webapp/file-download-button-fragment.xhtml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
styleClass="btn-download"
6969
process="@this"
7070
disabled="#{(fileMetadata.dataFile.ingestInProgress or lockedFromDownload) ? 'disabled' : ''}"
71-
actionListener="#{fileDownloadService.writeGuestbookAndStartFileDownload(guestbookResponse, fileMetadata, 'GlobusTransfer')}">
71+
actionListener="#{fileDownloadService.writeGuestbookAndStartFileDownload(guestbookResponse, fileMetadata, 'GlobusTransfer', null)}">
7272
<!-- non-tabular data file: -->
7373
<!-- no guest book/terms of use/etc. - straight to the download API url: -->
7474
<span class="globus-btn ui-icon" title="#{bundle['file.globus.transfer']}"/> #{bundle['file.globus.of']} #{fileMetadata.dataFile.friendlyType == 'Unknown' ? bundle['file.download.filetype.unknown'] : fileMetadata.dataFile.friendlyType}
@@ -118,7 +118,7 @@
118118
styleClass="btn-download"
119119
process="@this"
120120
disabled="#{(fileMetadata.dataFile.ingestInProgress or lockedFromDownload) ? 'disabled' : ''}"
121-
actionListener="#{fileDownloadService.writeGuestbookAndStartFileDownload(guestbookResponse, fileMetadata, 'Download')}">
121+
actionListener="#{fileDownloadService.writeGuestbookAndStartFileDownload(guestbookResponse, fileMetadata, 'Download', null)}">
122122
<!-- non-tabular data file: -->
123123
<!-- no guest book/terms of use/etc. - straight to the download API url: -->
124124
#{fileMetadata.dataFile.friendlyType == 'Unknown' ? bundle['file.download.filetype.unknown'] : fileMetadata.dataFile.friendlyType}
@@ -142,7 +142,7 @@
142142
<li>
143143
<p:commandLink styleClass="highlightBold btn-download" rendered="#{!(guestbookAndTermsPopupRequired)}"
144144
process="@this"
145-
actionListener="#{fileDownloadService.writeGuestbookAndStartFileDownload(guestbookResponse, fileMetadata, 'bundle')}">
145+
actionListener="#{fileDownloadService.writeGuestbookAndStartFileDownload(guestbookResponse, fileMetadata, 'bundle', null)}">
146146
#{bundle['file.downloadBtn.format.all']}
147147
</p:commandLink>
148148
<p:commandLink styleClass="highlightBold btn-download" rendered="#{guestbookAndTermsPopupRequired}"
@@ -160,7 +160,7 @@
160160
<p:commandLink styleClass="btn-download" rendered="#{!guestbookAndTermsPopupRequired and !(fileMetadata.dataFile.originalFormatLabel == 'UNKNOWN')}"
161161
process="@this"
162162
disabled="#{(fileMetadata.dataFile.ingestInProgress or lockedFromDownload) ? 'disabled' : ''}"
163-
actionListener="#{fileDownloadService.writeGuestbookAndStartFileDownload(guestbookResponse, fileMetadata, 'original')}">
163+
actionListener="#{fileDownloadService.writeGuestbookAndStartFileDownload(guestbookResponse, fileMetadata, 'original', null)}">
164164
<h:outputFormat value="#{bundle['file.downloadBtn.format.original']}">
165165
<f:param value="#{fileMetadata.dataFile.originalFormatLabel}"/>
166166
</h:outputFormat>
@@ -182,7 +182,7 @@
182182
<p:commandLink styleClass="btn-download" rendered="#{!guestbookAndTermsPopupRequired}"
183183
process="@this"
184184
disabled="#{(fileMetadata.dataFile.ingestInProgress or lockedFromDownload) ? 'disabled' : ''}"
185-
actionListener="#{fileDownloadService.writeGuestbookAndStartFileDownload(guestbookResponse, fileMetadata, 'tab')}">
185+
actionListener="#{fileDownloadService.writeGuestbookAndStartFileDownload(guestbookResponse, fileMetadata, 'tab', null)}">
186186
#{bundle['file.downloadBtn.format.tab']}
187187
</p:commandLink>
188188
<p:commandLink styleClass="btn-download" rendered="#{guestbookAndTermsPopupRequired}"
@@ -200,7 +200,7 @@
200200
<p:commandLink styleClass="btn-download" rendered="#{!guestbookAndTermsPopupRequired}"
201201
process="@this"
202202
disabled="#{(fileMetadata.dataFile.ingestInProgress or lockedFromDownload) ? 'disabled' : ''}"
203-
actionListener="#{fileDownloadService.writeGuestbookAndStartFileDownload(guestbookResponse, fileMetadata, 'RData')}">
203+
actionListener="#{fileDownloadService.writeGuestbookAndStartFileDownload(guestbookResponse, fileMetadata, 'RData', null)}">
204204
#{bundle['file.downloadBtn.format.rdata']}
205205
</p:commandLink>
206206
<p:commandLink styleClass="btn-download" rendered="#{guestbookAndTermsPopupRequired}"
@@ -228,7 +228,7 @@
228228
<p:commandLink styleClass="btn-download" rendered="#{!guestbookAndTermsPopupRequired}"
229229
process="@this"
230230
disabled="#{(fileMetadata.dataFile.ingestInProgress or lockedFromDownload) ? 'disabled' : ''}"
231-
actionListener="#{fileDownloadService.writeGuestbookAndStartFileDownload(guestbookResponse, fileMetadata, 'var')}">
231+
actionListener="#{fileDownloadService.writeGuestbookAndStartFileDownload(guestbookResponse, fileMetadata, 'var', null)}">
232232
#{bundle['file.downloadBtn.format.var']}
233233
</p:commandLink>
234234
<p:commandLink styleClass="btn-download" rendered="#{guestbookAndTermsPopupRequired}"

0 commit comments

Comments
 (0)