agozhiy 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_r339019715
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/StorageResources.java
 ##########
 @@ -301,4 +315,29 @@ public String getResult() {
     }
 
   }
+
+  /**
+   * Model class for Storage Plugin page
+   */
+  public static class StoragePluginsPage {
+    private final List<PluginConfigWrapper> plugins;
+    private final String csrfToken;
+
+    public StoragePluginsPage(List<PluginConfigWrapper> plugins, 
HttpServletRequest request) {
 
 Review comment:
   Changed the model according to your comment: now it contains one plugin and 
a CSRF token. Wen a list of plugins is needed we use list of the models instead.

----------------------------------------------------------------
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

Reply via email to