Commit 07ab1af0 authored by Matija Obreza's avatar Matija Obreza
Browse files

Require POST to download C&E

Fix annoying min-width for acn selection checkbox
parent 379a5b17
......@@ -87,7 +87,7 @@ public class DatasetController extends BaseController {
return "/metadata/view";
}
@RequestMapping(value = "/view/{id}/dwca", method = RequestMethod.GET, produces = "application/zip")
@RequestMapping(value = "/view/{id}/dwca", method = RequestMethod.POST, produces = "application/zip")
public void downloadDwca(@PathVariable(value = "id") long metadataId, HttpServletResponse response) throws IOException {
_logger.debug("Downloading data for " + metadataId);
......
......@@ -25,7 +25,7 @@ log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %t %5p %c{1}:%L - %m
### set log levels - for more verbose logging change 'info' to 'debug' ###
log4j.rootLogger=info, stdout
log4j.category.org.genesys2=debug
#log4j.category.org.genesys2=debug
#log4j.category.org.hibernate.search=debug
#log4j.category.org.apache.tomcat.jdbc.pool=debug
#log4j.category.org.springframework.jdbc.core.JdbcTemplate=debug
......
......@@ -60,7 +60,16 @@
</div>
<div><a href="<c:url value="/data/view/${metadata.id}/dwca" />"><spring:message code="metadata.download-dwca" /></a></div>
<div>
<form class="form-horizontal" method="post" action="/data/view/${metadata.id}/dwca">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
<div class="row" style="margin-top: 2em;">
<div class="col-sm-4">
<button class="btn btn-primary" type="submit"><spring:message code="metadata.download-dwca" /></button>
</div>
</div>
</form>
</div>
<c:if test="${faoInstitute ne null}">
<p>
......
......@@ -1273,6 +1273,7 @@ ul.funny-list > li.not-current * {
background-position: center left;
cursor:pointer;
width:32px;
min-width:32px;
}
.main-col table tr.acn .sel.picked {
......
Markdown is supported
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