arina-ielchiieva commented on a change in pull request #1864: DRILL-7351: Added
tokens to Web forms to prevent CSRF attacks
URL: https://github.com/apache/drill/pull/1864#discussion_r334648033
##########
File path: exec/java-exec/src/main/resources/rest/storage/list.ftl
##########
@@ -190,7 +190,7 @@
<button type="button" class="btn btn-default"
data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary"
onclick="doCreate()">Create</button>
</div>
- <input type="hidden" name="csrfToken"
value="${model.getCsrfToken()}">
+ <input type="hidden" name="csrfToken"
value="${model[0].getCsrfToken()}">
Review comment:
Not sure why now we get first model, can be there more than one or none?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services